Loadmovie in actionscript 3

hi all,

i hope someone can help me with this one as its driving me up the wall!!

i am pretty new to as3, and i dont know if its me but have things got alot more complicated?

i have made 4 .swf’s that all work fine individually. i have 4 scenes that each .swf is to load into and play in turn when the main movie loads in.

before the loadmovie code was:

stop();
unloadMovieNum(2);
loadMovieNum(“fcbp01.swf”, 2);

now however i have been advised to use:

var request:URLRequest = new URLRequest(“achange.swf”);
var loader:Loader = new Loader();
loader.load(request);
addChild(loader);

this does not work and i get the error code:

1151: A conflict exists with definition loader in namespace internal.
var loader:Loader = new Loader();

im sure there is a simple way round and any assistance would be greatly recieved

:eek:

var loader:Loader = new Loader();

flash has an issue with you using the var “loader”
Name it to something else

Can i use the “loadMovie” function in AS2 ?

Thanks

loadMovie() has been around since AS1

I would recommend using the MovieClipLoader class of AS 2, as it gives you more control over dynamically loaded content.

Sorry. Can i use the “loadMovie” function in AS3.0 ?

You need to use the loader class in AS3

thank you!