You would listen for stage.resize yourself and set application's
width/height appropriately.  The stage or systemManager will send the
resize event when the browser resizes.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ravi Kumar Gummadi
Sent: Tuesday, May 08, 2007 6:33 AM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt
behave like a authorin tool published SWF



Alex,

 

I couldn't get how we are gonna control the stage size. If we are giving
absolute width and height for the Application ( I guess it's the same
size of stage) the application is not listening or dispatching to any
resize events ( Both the application as well as stage are not
responding) and hence browser resizing is not at all effecting the
Application.

 

But on contrary to that in authoring tool , though we are hardcoding the
stage size to some fixed value, the player/browser resize is effecting
it.

 

 

EvilCflex

stageMode set to showall gets somewhere near to that but...its scaling
out..! U told about setting the width and height but..its clipping the
stage instead of zooming down.... U referred to  this.parent. ..but
whose parent are u actually referring to??

 

Regards

Ravi

 

 

************************************************************************
****************************************************************** The
information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this
email in error, please notify the System Manager at
[EMAIL PROTECTED] as soon as possible. Thank you for your attention
to this matter.
************************************************************************
******************************************************************

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, May 07, 2007 11:11 PM
To: [email protected]
Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt
behave like a authorin tool published SWF

 

In theory, you either want the player to do the scaling or Flex to do
the scaling.  Flex doesn't really know how so it just looks at the new
stage size and tries a non-scaled layout.  If the player also tries to
scale, you'll get the wrong result.  Setting a non% width/height should
prevent Flex from trying the non-scaled layout.

 

You can then listen to the Stage resize event yourself and resize the
Application to whatever makes it work for you.

 

I think one "hard" part may be in controlling the stage size.  As you
resize the browser, it is resizing the player and if the player is given
an aspect ratio different from the original you might get bad results.
You may want to add some Javascript in the wrapper that you call from
ExternalInterface in your Stage resize event that tries to force the
browser to give the player an aspect ratio you like.

 

-Alex

 

 

Reply via email to