Jump to content
Search Community

removeChild in external swf

un4given test
Moderator Tag

Recommended Posts

I have loaded a swf to the stage via SWFloader.

 

my question is. Is there a way to remove a child that is inside the external swf?

 

I want wo remove a child inside of "rain1".

 

 

 

var rain:LoaderMax = new LoaderMax({name:"mainQueue"});

rain.append( new SWFLoader("swf/rain1.swf", {name:"rain1", estimatedBytes:3000, container:rain_mc, y:-3,  autoPlay:false}) );
rain.append( new SWFLoader("swf/rain2.swf", {name:"rain2", estimatedBytes:3000, container:rain_mc, y:-3,  autoPlay:false}) );
rain.append( new SWFLoader("swf/rain3.swf", {name:"rain3", estimatedBytes:3000, container:rain_mc, y:-3,  autoPlay:false}) );


function startrain(evt){


rain.load();


var timerunload = new Timer(13000,1);
timerunload.start()

timerunload.addEventListener(TimerEvent.TIMER, onUnload);

function onUnload(evt){

	rain.unload();
}

stop();

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...