Hi,
 
I did a poor solution to this problem but I believe that is a start to solve the problem:
 
I put the following code in the application that will be loaded:
 
     private function resizeLoader(event:Event = null):void
     {
          width = parent.parent.parent.width;
          height = parent.parent.parent.height;
     }
        
     private function initApp():void{
         resizeLoader();
         parent.parent.parent.addEventListener("resize", resizeLoader);
      }

onCreationComplete execute the initApp()...
 
I try to create a AppLoader component extend the loader and adjust the content after the complete event but I don't know how to access the content proprieties, if some one know how to change the content properties please let me know...
 
Tks...
 
On 3/22/06, Doug Lowder <[EMAIL PROTECTED]> wrote:
I know in 1.5 the trick was to provide the loaded (inner) app with
getPreferredHeight() and getPreferredWidth() functions; may be worth a
try in your case if you are able to modify the code for the loaded
apps.  In AS2, it was:

function getPreferredHeight() {
    return _parent? _parent.layoutHeight : super.getPreferredHeight();
}

function getPreferredWidth() {
    return _parent? _parent.layoutWidth : super.getPreferredWidth();

}

--- In [email protected] , "inawire" <[EMAIL PROTECTED]> wrote:
>
> With further testing, the loaded (inner) app (application.width) is
> scailing to the correct size on initial load. When the outer shell
> resizes, the inner app resize does not get called (it does when it
> runs on its own).
>
> Also when the inner app first loads, thought the inner app is showing
> the correct width available, the inner content does not scale to
> fit available size of the inner app.
>
> Does anyone have any ideas?
>
> Ross
>
>
>
>
> --- In [email protected], "Bruno Martins" <bheman@> wrote:
> >
> > I had the same problem, but I don't fix yet.
> >
> > On 3/21/06, inawire <ross@> wrote:
> > >
> > > Hi
> > >
> > > I just converted my app to Beta 2. Ran the conversion scripts,
> switch
> > > layout constraintes, changed LinkBar click to itemClick (that got
> > > me),worked through some new warnings that were not present before.
> > > Everything works fine now ... but (always a but)
> > >
> > > I'm loading other Flex apps into a shell Flex app. I had the
> loaded
> > > apps expanding to fill 100% of the available space. The shell app
> has
> > > a top control panel, a bottom status bar and the rest is left to
> the
> > > following code (below) to fill out the middle. In Beta 1, the apps
> > > would load into the shell and expand to fit the available
> > > width/height. Now when I load the apps they come in as 500x375.
> The
> > > apps on their own fill the browser window. Also, if I set the
> apps to
> > > be say 600 wide, they will come in 600 wide (loader will expand to
> > > fit).
> > >
> > > Something has changed, does anyone have any ideas?
> > > Is this related to the issue:
> > > "Resize effect problems The Resize effect doesn't work with layout
> > > constraints." (from known issues)
> > > If so is there a workaround?
> > >
> > > Thanks
> > >
> > > Ross
> > >
> > > -----------------------------------------
> > > Code from shell app that loads sub apps.
> > > ...
> > > <mx:HBox width="100%" height="100%" borderStyle="solid"
> > > cornerRadius="5" styleName="colorPanel" dropShadowEnabled="true"
> > > horizontalGap="0">
> > >   <mx:VBox width="100%" height="100%">
> > >     <mx:Loader
> > >         height="100%"
> > >         width="100%"
> > >         id="applet"
> > >         minHeight="400"
> > >         minWidth="354"
> > >         source="{app}"
> > >         scaleContent="true"
> > >         complete="doneLoading()"
> > >         showBusyCursor="true"
> > >         />
> > >   </mx:VBox>
> > > </mx:HBox>
> > > ...
> > >
> > >
> > >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
Bruno Gustavo Martins
Mobile: (55)(11)9585-9587
[EMAIL PROTECTED]
experience everywhere
http://www.dclick.com.br/blog


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to