Title: 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: [email protected] [mailto:[email protected]] On Behalf Of Michel Bertrand
Sent: Thursday, November 17, 2005 11:27 AM
To: [email protected]
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