So the solution was to set the scaleX & scaleY after I know the
dimensions of the stage. Add an event listener for added to stage and
resize, then calculate the scaling factor that will make the longest
side of the app fit into the longest side of the stage then apply the
scaling to both scaleX and scaleY .

Thanks,

- Ivo

--- In flexcoders@yahoogroups.com, ivo <cervantes_v...@...> wrote:
>
> Hello listers,
> 
> I have a Flex App with scaleMode set to StageScaleMode.SHOW_ALL, the
Application tag dimension set to 300x500 and it scaled perfectly when
modifying the dimensions of the <embed> tag.
> 
> To make things cleaner I removed all the AS3 code from the
Application MXML file and placed it in an AS3 class that extends
Application (BaseApp.as). I then updated the MXML file to have
<base:BaseApp xmlns:base="*" > as the root tag with dimension still at
300x500. Now I find that the scale mode is not preserved correctly
when modifying the dimensions of the <embed> tag. The UI content in
the MXML scales down way farther that the embed dimensions.
> 
> If I sized the embed tag at 150x250 I see the flash content takes up
those dimensions but the visual content provided by the MXML subclass
is scaled down to 90x120 .
> 
> If I move the dimensions from the MXML subclass to the base class
then the content is scaled even further to like 45x75
> 
> Can anyone help me understand what is going on and how I can make
the content scale correctly?
> 
> Thanks,
> 
> - Ivo
>


Reply via email to