AS3 and the loader class
Posted
by Acti67
on Stack Overflow
See other posts from Stack Overflow
or by Acti67
Published on 2010-05-20T17:54:44Z
Indexed on
2010/05/21
0:30 UTC
Read the original article
Hit count: 278
Hi,
I write here, because after looking for a solution, I could not resolve my error...
var test:MovieClip;
var sign:Loader = new Loader();
sign.contentLoaderInfo.addEventListener(Event.COMPLETE, completSIGN);
sign.load(new URLRequest("http://files.zebest-3000.com/278374/3011/3011.swf"));
function completSIGN(e:Event):void
{
test = MovieClip(e.target.content);
addChild(test);
}
This is the error:
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul. at Main::StateManager()
So, the movie (some videos work perfectly and others not) does not want to load in my container ; it seems there is a problem in the mapping... and can't modify the distant movie.
- Is there an other method of loading a movie inside one other (I have try also to load with bytearray, but it's the same)?
- Can we catch this error and relocate the instance to help him to find the correct way?
© Stack Overflow or respective owner