views:

41

answers:

0

What I am trying to do is load 2 different swf's using 2 different buttons.

What I want to happen is when you click on button 1 it loads the first swf and button 2 loads the second swf removing any other swf from the stage first.

The problem I seem to be running into is with the loader. I cannot seem to load the images into the loader without putting them on the stage. And when I try to load the images dynamically it keeps on recreating the swf's by placing another one in the loader even though I am using :

stage.removeChild(loader);
loader = new Loader();. 

Any help or tutorials on this information would be great.