Thanks all ,

 

I figured out an insane fix to the issue I am facing.

 

When you give stage.scaleMode = SHOW_ALL , the application would be
scaling out due to some issue which I am not aware of! 

So in the creationComplete event listener of the application have a zoom
effect which scales down to the application so that it fits the browser.

Later when u resize the browser the zoom ratio  is maintained anyhow.

 

A known bug to the fix is , if you are creating any popups they wouldn't
of the zoom ration 1:1 instead of the new zoom ration. The zoom ratio
affects only the base Application. So you have to be careful that you
are zooming all the popups by the same ratio as soon as u create them.

 

Private function onCreationComplete(event:Event){

 

                  this.systemManager.stage.scaleMode =
StageScaleMode.SHOW_ALL;

            this.systemManager.stage.align = StageAlign.TOP_LEFT; //
else the zoom effect would center ur application
after the zoom completlets 

                  Var zoom:Zoom = new Zoom();

                  zoom.zoomHeightFrom = 1; 

                  zoom.zoomWidthFrom = 1;

                  zoom.zoomHeightTo = 0.7;

                  zoom.zoomWidthTo = 0.7;

 
zoom.addEventListener(EffectEvent.EFFECT_END,onZoomEnd);

                  zoom.play([this]);

}

 

Would be glad to explain it more clearly, if anything is not clear

 

HTH

 

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 Ravi Kumar Gummadi
Sent: Tuesday, May 08, 2007 7:03 PM
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