Title: 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




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