i have dynamically loaded jpeg , but now how do i make it dissappear when its clicked on?
holdermovieclip.onPress = function(){
this.swapDepths(-565);
this.removeMovieClip();
}
so it would be
but.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("armandbio.jpg", "container");
container._x = 24.0;
container._y = 63.0 ;
}
holdermovieclip.onPress = function(){
this.swapDepths(-565);
this.removeMovieClip();
}
what does the swapdepths mean?
but.onPress = function () {
mc = _root.createEmptyMovieClip("container", 1);
mc.loadMovie("armandbio.jpg");
mc._x = 24.0;
mc._y = 63.0 ;
}
holdermovieclip.onPress = function(){
this.swapDepths(-565);
this.removeMovieClip();
}
The swapDepths puts the movieclip at a removable depth
Hey Voets! You won’t be able to remove it if you change the depth of the movie clip to anything below zero!!
See http://www.kirupaforum.com/forums/showthread.php?s=&threadid=16877.
And make sure the image has been fully loaded before you assign the event handler, pares101.
Lol, what’s wrong with me these days ? Thanks for the info Kode, it won’t happen again
thanx for the help guys!
Welcome. :beam: