View Full Version : How can I set my flash to do this?
Crimo
01-24-2007, 11:07 PM
Look, I dont know if this is in the tutorials already, i just didnt find it cause i wouldnt know how you guys name it; here is the website:
http://www.nexuzmkt.com
there is a big flash (about 1300 x 1000) pixels that is in a TD with 100% by 100%, the question is, why the aspect of the flash doesnt change in any resolution? i mean, if you resize the window manually the flash wouldnt change... and look, if you switch to lower resolutions as 800 x 600 it wouldnt show the whole flash (the site centers only the main info, the big background just stays out of the screen), please someone tell me how can i do something like :) i would really apreciate it.
happycoder242
01-25-2007, 10:04 AM
taken from flash help:
onResize (Stage.onResize event listener)
onResize = function() {}
Invoked when Stage.scaleMode is set to noScale and the SWF file is resized. You can use this event handler to write a function that lays out the objects on the Stage when a SWF file is resized
scaleMode (Stage.scaleMode property)
public static scaleMode : String
Indicates the current scaling of the SWF file within Flash Player. The scaleMode property forces the SWF file into a specific scaling mode. By default, the SWF file uses the HTML parameters set in the Publish Settings dialog box.
The scaleMode property can use the values "exactFit", "showAll", "noBorder", and "noScale". Any other value sets the scaleMode property to the default "showAll".
showAll (Default) makes the entire Flash content visible in the specified area without distortion while maintaining the original aspect ratio of the. Borders can appear on two sides of the application.
noBorder scales the Flash content to fill the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.
exactFit makes the entire Flash content visible in the specified area without trying to preserve the original aspect ratio. Distortion can occur.
noScale makes the size of the Flash content fixed, so that it remains unchanged even as the size of the player window changes. Cropping may occur if the player window is smaller than the Flash content.
Note: the default setting is showAll, except when in test movie mode, where the default setting is noScale
Crimo
01-27-2007, 03:34 AM
thank you so much man, =D!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.