Advertisement

08.15.2008 at 07:03AM PDT, ID: 23651266 | Points: 500
[x]
Attachment Details

How to get SWFLoader to properly scale it's contents

Asked by marckbt in Adobe Flex, ActionScript

Tags:

I have a Flex application which contains a SWFLoader that will load an AS3, MovieClip-based SWF. The problem is that when the SWF is loaded, it's stage is set to the entire Flex application's width and height instead of scaling down to the specified width and height of the SWFLoader.

I search online all day yesterday trying various approaches and was unsuccessful. Is this a common problem? Does anyone have any ideas as to why this would happen?

Update:

It looks like it is something to do with the loaded swf's stage. The SWF that is to be loaded positions its controlls based on the stage width and height. When my flex app loads the SWF, it sets the child swf's stage to the same dimensions as itself. Is there a way to position components without being relative to the stage area? I would think this is a more common problem, but I have yet to find the correct solution.

Thanks for any help!Start Free Trial
 
Loading Advertisement...
 
[+][-]08.15.2008 at 11:28PM PDT, ID: 22243329

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.15.2008 at 09:49AM PST, ID: 22967900

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628