Size of movie in pixels  
Author Message
Shipka





PostPosted: 2005-10-11 0:33:22 Top

flash-actionscript, Size of movie in pixels I have a flash movie that should do certain actions depending on what size it
is in HTML. I don't want the movie to have fixed size. Is it possible to reach
width and height of the movie from within the movie? The code below always
returns the default size as it was set in Flash, no matter how the sizing in
HTML change it.

trace(_root._width)
trace(_root._height)

 
Shipka





PostPosted: 2005-10-11 1:27:00 Top

flash-actionscript >> Size of movie in pixels Found it! It's "Stage.width" that makes it work.

And lots of usefull information here thanks to David Stiller:

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=288&thre
adid=1058161&highlight_key=y&keyword1=Stage%2Ewidth

 
David Stiller





PostPosted: 2005-10-11 3:39:00 Top

flash-actionscript >> Size of movie in pixels Shipka,

> And lots of usefull information here thanks to David Stiller:
> http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=288&thre
> adid=1058161&highlight_key=y&keyword1=Stage%2Ewidth

Wow, I helped someone without even answering! Awesome! :-D


David
stiller (at) quip (dot) net
"Luck is the residue of good design."


 
 
Shipka





PostPosted: 2005-10-12 0:25:00 Top

flash-actionscript >> Size of movie in pixels :D

Soon you'll be able to make whole web sites without even turning on your computer!