fireburner69
Programmer
Hello,
my problem is that:
I am playing around with some buttons and I use one to duplicate a mc with this code.
var mc_name:String = "demo";
duplicateMovieClip(_level0.target_mc,mc_name,_level0.getNextHighestDepth());
Everything is smooth and working fine.
Inside this target_mc I have a close button.
And I have stored this code:
on(press){
unloadMovie(this);
//removeMovieClip(this);
}
Well the unloadMovie is not working!!
When I try the 2nd one it is fine but after that I can not recreate the mc with the duplicate.
What I am doing wrong?
Have in mind that with the same method I have used it to create a button and its working ok!
I can not understand why this is not working!?
Thanks in advance for your help.
my problem is that:
I am playing around with some buttons and I use one to duplicate a mc with this code.
var mc_name:String = "demo";
duplicateMovieClip(_level0.target_mc,mc_name,_level0.getNextHighestDepth());
Everything is smooth and working fine.
Inside this target_mc I have a close button.
And I have stored this code:
on(press){
unloadMovie(this);
//removeMovieClip(this);
}
Well the unloadMovie is not working!!
When I try the 2nd one it is fine but after that I can not recreate the mc with the duplicate.
What I am doing wrong?
Have in mind that with the same method I have used it to create a button and its working ok!
I can not understand why this is not working!?
Thanks in advance for your help.