Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-13-2008, 06:37 PM   #1
Registered User
Join Date: May 2008
Location: Westchester, NY
Posts: 1
Default Scaling an Externally Loaded Flex app

Hi everyone, I'm new to this forum (I've been reading this forum forever, but first post) and have a question about loading external flex apps into a parent/controller flex app using SWFLoader. I've searched the internet high and wide.

The child flex app (to be loaded into the controller app) is laid out for a certain dimension (778x450). When my controller app loads in the child app, the SWFLoader that does the loading is 100%x100% to honor browser resizing. When the SWFLoader component is resized, I want the child app to be *scaled* without the layout repositioning that would normally take place inside the child app. I simply want the entire appearance of the child app to be scaled down/up depending on the size of the SWFLoader.

I'm successfully doing this with a Flash 8 (as2) swf, with no problems, but the layout managers in flex dont seem to want to let me do this.

Is there an easy way to accomplish this with child flex apps aside from writing a resize function inside the child flex app that scales everything for me?

Btw, I'm running flex builder 3.

njward is offline   Reply With Quote
Old 05-15-2008, 03:30 AM   #2
Senior Member
Join Date: Nov 2007
Posts: 153

Have you tried changing SWFLoader.scaleContent and SWFLoader.maintainAspectRatio?
Matthew Butt
mattb is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
passing vars from flex to a loaded swf davej Flex 2, 3 & 4 2 10-21-2007 06:08 PM
Duplicating an externally loaded image? zakour ActionScript 2.0 3 10-20-2007 09:29 PM
Player resizes images loaded externally solo1 Other Flash General Questions 1 05-16-2006 06:37 PM
Changing size of loaded clips but not scaling jbucks ActionScript 2.0 2 03-17-2006 10:57 AM
Preloader mixed with a complex bit of code PabloPicasso ActionScript 2.0 0 07-02-2005 10:57 AM

All times are GMT. The time now is 01:22 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.