Skip to main content
Known Participant
April 6, 2018
Answered

How to test movie without error after load swf file?

  • April 6, 2018
  • 1 reply
  • 715 views

Hi.. I want to load document class in fla file. I use this code below and when I test scene only its really work.

var loader:Loader=new Loader();

addChild(loader);

loader.load(new URLRequest("game.swf"));

but I have problem when I test Movie for my whole file fla. and the error is:

1151: A conflict exists with definition loader in namespace internal.

which is mention this code below:

var loader:Loader=new Loader();

can you help me solve this problem please?

Thank You

This topic has been closed for replies.
Correct answer kglad

you mean just use one code?

but there are 3 games.. the other 2 games how?


just remove this line

var loader:Loader=new Loader();

you can still load the other 2 games with the same loader.  you'll need a different Loader instance if more than one object needs to loaded at any one time.

1 reply

kglad
Community Expert
Community Expert
April 6, 2018

you this code more than once:

var loader:Loader=new Loader();

ie, remove the duplicates.

[moved from Adobe Creative Cloud to ActionScript 3]

Known Participant
April 6, 2018

sorry, i am beginner. i don't understand what you explain about. can you detail it?