-
Senior Member
Dynamically adjust stage width from AS
Hi guys,
I used to be really good with Flash but after 4 years of no use I seem to have forgotten everything...
What I'm trying to do build an FLV player which will take the size of the FLV movie and dynamically adjust the stage width/height to match the FLV.
Is this possible? (I'm using Flash 8)
Thanks.
-
You can't really adjust the stage width/height through actionscript code, you do it through html. Set the flash width/height to 100% and put it in a table or something, then line your movie clips x/y through code based on Stage.width/Stage.height.
-
Senior Member
Thanks. I got my head around it in the end.
I just made the swf scale 100% to the stage size and then altered the width or my movie within it. Once the movie is embedded on the page it will be fine.
It's awful being out of it for so long, I'd even forgotten how to do a simple trace...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|