hey, eerm, i seem to be having a bit of trouble getting a particular movie clip to either go away when i dynamically add it, or stay on top of all other dynamically added movie clips if i add it directly to the stage myself. im not sure if it’s even possible to have those movie clips on a higher depth than dynamically added ones, so i’m betting i need to find out how to delete a movie clip i’ve added. maybe if i post my code, it will be easier to understand.
function Pause ()
{
Paused = true
var Pausescreen = _root.attachMovie("Pausescreen", "Pausescreen"+_root.getNextHighestDepth (), _root.getNextHighestDepth ())
Pausescreen._x = -20
Pausescreen._y = -20
}
i’ve coded it so once i hit a button, i call the pause function and everything stops and a gray box appears over everything. i already know the pause function is being called, the box appears, etc. the problem comes in the next few lines of code…
function unPause ()
{
Paused = false
_root.Pausescreen.removeMovieClip ()
}
that’s just one of the ways i’ve tried to do it, i’ve tried putting “this.removeMovieClip” and putting the instance name in the brackets, etc.
any help would be appreciated, as i know i’m just missing something crucial like i need to create a new empty movie file and delete that or something ;/