Re: [flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-04-03 Thread Bruno Martins
use: AppLoader id=loader scaleContent=true width=100% height=100% bottom=0 top=44 left=0 right=0/ and a new application using: loader.load(YorNewApp.swf); Tks.. On 4/1/06, inawire [EMAIL PROTECTED] wrote: Can you supply some sample code snipits? ThanksRoss--- In flexcoders@yahoogroups.com ,

[flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-04-01 Thread inawire
Can you supply some sample code snipits? Thanks Ross --- In flexcoders@yahoogroups.com, Bruno Martins [EMAIL PROTECTED] wrote: Hi Ross, My friend Beck Novaes did a better implementation of AppLoader. Tks.. -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-28 Thread Bruno Martins
Hi Ross, My friend Beck Novaes did a betterimplementation of AppLoader. Tks.. On 3/27/06, Bruno Martins [EMAIL PROTECTED] wrote: Yes I extend the loader to create this new component. I had the same problem you have. The document is undefinedon complete event, but a fill seconds after they

Re: [flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-27 Thread Bruno Martins
Yes I extend the loader to create this new component. I had the same problem you have. The document is undefinedon complete event, but a fill seconds after they appear so a put a interval to manipulate the content. I don't like this solution but I'll try a better one. If you have some idea,

[flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-24 Thread inawire
Hi Bruno I was finaly able to talk to the inner app. I added this code to a button in the shell app. Note: applet is the id of my mx:Loader component in the shell app var subApp:SystemManager = SystemManager(applet.content); trace(subApp.document.appName); content is of type SystemManager which

Re: [flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-24 Thread Bruno Martins
Sorry Ross I thought that you name is inawire... On 3/24/06, Bruno Martins [EMAIL PROTECTED] wrote: Hi Inawire, Excellent discover about the SystemManager. Now I did a first AppLoader component(use AppLoader instead of Loader), until now its works fine for meif you find some bugs please let

[flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-24 Thread inawire
I take it 'AppLoader' is a custom component you created by extending the Loader component? How did you endup handeling the 'unloading' of an app before loading a second one? How did you handel a notification from the inner app that it was complete and that the shell app could talk to it.

Re: [flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-23 Thread Bruno Martins
Hi, I did apoor 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 =

[flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-23 Thread inawire
Thanks Bruno and Doug, This is on the right track (though I still do not know why this worked in beta 1 with out all this extra code). Bruno, your code worked for me fine (flex 2 version of Doug's idea). When I load my inner app, the content resizes perfectly (see inner app below). The only

Re: [flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-23 Thread Bruno Martins
Hi, I know about this listener problem but I'll try other solution as soon as possible... Tks On 3/23/06, inawire [EMAIL PROTECTED] wrote: Thanks Bruno and Doug, This is on the right track (though I still do not know why this worked in beta 1 with out all this extra code). Bruno, your

[flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-22 Thread inawire
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

[flexcoders] Re: Flex Beta 2 - Loader not loading SWF 100%

2006-03-22 Thread Doug Lowder
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?