ToddSlaughter
03-21-2006, 12:18 AM
I have a SWF that is set to scale with the window (showall). It's native size is 736x528 pixels. The stage doesn't grow, the content scales. If the window is scaled up, everything gets larger. At 200%, pixels are doubled. The SWF always thinks it is 736x528, no matter what. I need to read the actual pixel size of the Flash container, either with Javascript or Actionscript. Can it be done? Stage.width and Stage.height always show 736 and 528, no matter what.
My goal is to have a button that sets the window back to the proper size for 1:1 scale. The trouble is I can't be certain what else will be in the window, sharing space with the Flash. So the window dimensions are worthless to me.
Thanks.
My goal is to have a button that sets the window back to the proper size for 1:1 scale. The trouble is I can't be certain what else will be in the window, sharing space with the Flash. So the window dimensions are worthless to me.
Thanks.