Title: Flex 2.0 - Loader - Error #2036 : Load Never Completed
There is no .mxml.swf, that was a server thing from 1.x days.
 
You have to build the child SWF first, then load it. 
 
Dynamically loading child SWFs is not really that simple, unfortunately.  It is inefficient to try to build an application by loading other MXML applications, as they will be 10x larger than they really need to be.  Even in 1.x, the child SWF that you built was also an application.  There isn't any such thing as "dynamically loading a component".
 
Further, the interop rules between the parent and child SWF are much more complicated.
 
Just to make certain, dynamic loading is really what you want, right?  You don't simply want to create the component, perhaps using deferred instantiation?
 
-Roger

Roger Gonzalez
[EMAIL PROTECTED]

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: Friday, November 18, 2005 5:31 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2.0 - Loader - Error #2036 : Load Never Completed

I’ve heard of the Loader having some problems in the alpha but are you sure that it’s really the right path for the swf?  Did you compile MyComponent.mxml already into a SWF, remember you don’t have a server to do the compilation for you…

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michel Bertrand
Sent: Thursday, November 17, 2005 11:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2.0 - Loader - Error #2036 : Load Never Completed

 

Hello !

I have tried to use mx.controls.Loader to load a simple MXML component, like:

public class MyLoader extends Canvas {

public var source:String;

public function ioError(error:Object) : Void {
Alert.show("Loader ioError"+ error.text);
}

public function securityError(error:Object) : Void {
Alert.show("Loader securityError"+ error.text);
}

public override function createChildren(): Void {
this.width = 0;
this.height = 0;
this.visible = false;

loader = new Loader();
loader.addEventListener("complete", this.loadComplete);
loader.addEventListener("ioError", this.ioError);
loader.addEventListener("securityError", this.securityError);
addChild(loader);
loader.load(source);

super.createChildren();
.....
}
}

The property "source" contains the path to my MXML that is located at the same directory of MyLoader, for example,
"source" content is "MyComponent.mxml.swf".

So, I've ever had "Error #2036 : Load Never Completed" when running this code.

I'm using Flash Player version 8,5,0,133.

Any idea ?

Thanks in advance !
Michel Bertrand | Desenvolvimento | DATASUL Tecnologia
Acesse www.datasuldirect.com.br e conheça mais sobre os produtos e soluções de tecnologia





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




YAHOO! GROUPS LINKS




Reply via email to