Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: [flasher] Re: Finding Height and Width of Movie - Problem! (Of course) |
From: | Muzak |
Date: | Mon, 05 Feb 2001 15:09:36 -0000 |
You can't retrieve the width and height of the stage for some reason (probably because it isn't an object, like a movieclip). What
you can do is make a movieclip with just the outline of a rectangle, the size of your movie and put it on the stage (set it's
_alpha=0) and use the MC's width and height.
hth,
Muzak
> ----- Original Message -----
> From: "Mike Kelly" <mike [dot] kellyt-online [dot] de>
> To: "flasher from chinwag" <flasherlists [dot] chinwag [dot] com>
> Sent: Monday, February 05, 2001 3:34 PM
> Subject: [flasher] Finding Height and Width of Movie - Problem! (Of course)
>
>
> > Hello,
> > I'm trying to create two variables in Flash 5, one which is equal to half
> > the movie's height, and another which is half the movie's width. (The
> whole
> > movie, not just a movieclip.) My movie is 800x600, but I may change it,
> so
> > my code tries to reflect that.
> > If I use:
> > scrwidth=_root._width/2
> > ...I get a strange value: 392.575. So my movie is only 785.15px high??!
> > Same problem with the height - it suggests my movie is only 366.5px high.
> > These strange numbers don't seem to be related in any way to the content I
> > have on the stage...
> > Any ideas what's going on?
> > Thanks,
> > M
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]