View Full Version : Resize swf dynamically in AS3
Mr.Kikkoman
March 2nd, 2009, 12:03 PM
Is there any way to resize the .swf dynamically in AS3? I'm creating an mp3 player with a collapsible playlist that's embedded in an HTML page. The playlist might exceed the height I set it at...
One solution I thought of is just setting the array of songs in the html via swfobject then just calculating the height based on that.
Magik5
March 2nd, 2009, 12:08 PM
stage.stageWidth = yourWidth
stage.stageHeight = yourHeight;
but have you thought about using a scroll component, mask or similar to fit your playlist into?
Mr.Kikkoman
March 2nd, 2009, 01:50 PM
ha, well i guess that would work, if it works. i've never had to set the stage width within as3 so i never ran across this problem.
unfortunately, they don't want the playlist to scroll.
Fidodo
March 2nd, 2009, 06:43 PM
Scrolling is going to be inevitable at some point. There's only so much screen to use.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.