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
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ravi kumar gummadi Sent: Monday, May 07, 2007 4:17 AM To: [email protected] Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt behave like a authorin tool published SWF Apologies for the duplicate mails..!! Some problem with my corporate server From: Ravi Kumar Gummadi Sent: Monday, May 07, 2007 2:51 PM To: '[email protected]' Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt behave like a authorin tool published SWF One more issue is, I have custom developed Title windows in which individual game play would be happening which wud be created when we click on a button in the canvas. So when I give the zoom effect to the base canvas.. the windows wouldn't be resized. Is there a way that the whole application zooms in along with the game windows...in it?? And when how can we control the aspect ration of an application....when the browser resizes! B'coz when we set stagemode to something like EXACT_FIT it would try to scale to the present dimensions...ignoring the aspect ration Thanks in advance 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: Ravi Kumar Gummadi Sent: Monday, May 07, 2007 2:19 PM To: '[email protected]' Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt behave like a authorin tool published SWF Sorry for the duplicate mail Alex, No, I didn't specify the exact width and height for Application, bcoz specifyin that restricts the whole application in that space and it doesn't extend Occupy the whole browser .But I want the application to be zoomable / resizable... I added a canvas in the application which lays all my components and the size of that canvas and the components added are Fixed.. Now when my application resizes...I would like that canvas to be fitting the whole stage..! I was tryin to use Zoom effect based on eventlistener. My application layout is something like this.. <Application width=100% height=100% > <Canvas id="test" width=200 height=300> <Button id=test1 /> <Label id =test2 /> <TextArea = test2/> </Canvas> </Application> If I give the canvas width and height as 100% ,though it occupies the whole application, It doesn't behave the way I want..! I want the whole canvas to be zoomed like a picture without affecting my layout a trifle..! ( Something like when a movies is playing, u right click and select zoom in , I would like exactly the same effect but when the browser resizes) Please let me know if the explanation is not clear..! 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 1:07 PM To: [email protected] Cc: [EMAIL PROTECTED] Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt behave like a authorin tool published SWF Did you specify the exact size of the application' s width/height? I think you want to make sure Flex doesn't see the stage resize event and use EXACT_FIT or SHOW_ALL. -Alex ________________________________ From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Ravi Kumar Gummadi Sent: Monday, May 07, 2007 12:14 AM To: [EMAIL PROTECTED] ups.com Cc: ravikumar_bits@ yahoo.com Subject: [flexcoders] Zooming of the whole Application !!! Doesnt behave like a authorin tool published SWF Hi all, I am developing a gaming application. The coordinates and sizes of all the components are fixed inside the application But now when the browser is resized , I would like the whole application to be zoomed in our out...! It neednt relay the components etc..Its just crude zooming. Whenever u make something from a authoring tool..it automatically takes care of that..! It maintains the aspect ration and zooms in the whole SWF appropriately... But Flex is making life really tuff..!! I tried many tweaks like setting scaleMode etc.. this.systemManager. stage.scaleMode = StageScaleMode. EXACT_FIT / .SHOW_ALL etc... But this is making my app scale beyond the actual stage size! I also caught the Resize event of the application and tried to use zoom effect..! But it's a lot tuff and trickier since zoom uses only ratios. I have a gut feeling that its by setting the scaleMode but that doesn't work as expected..! The content is scaling out.! Please help me out..! Its really blocking my whole deliverable. .!!!! Thanks in Advance Ravi Kumar G ************ ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* 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] com as soon as possible. Thank you for your attention to this matter. ************ ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ********* ________________________________ From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Christian Gruber Sent: Sunday, May 06, 2007 1:12 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Re: Question about the 'includes' compiler option and SWC files. As to docs, I'm not sure. I mostly looked up things from the flex docs or from the archives of lists like this. As to multiple files, I'm not. I know you can match a whole source folder with -include-sources, but not with wildcards. If you're running the compiler from the shell, then you may be able to use wildcards with sources (because they're paths, not AS3 class definition names, but in that case it would be the shell resolving the wildcard, not the compiler. Christian. On May 5, 2007, at 3:14 PM, gotgoose09 wrote: > Thanks for that info! Is there somewhere I can read more about SWCs > or is there only the Flex 2 Documentation? > > I'm still wondering about matching multiple files instead of one at a > time; anyone know if this can be done? > christian gruber + [EMAIL PROTECTED] net <mailto:cgruber%40israfil.net> + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRÁFÍL CONSULTING SERVICES ________________________________ Ahhh...imagining that irresistible "new car" smell? Check out new cars at Yahoo! Autos. <http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM->

