I will admit I have no idea what that script is supposed to do.
you’re detecting collision of the x and y mouse position? That just doesnt look right to me.
My first reaction was to use getBounds on an mc of your choice, then detecting whether or mouse your _xmouse or your _ymouse was withing that range. However, if the code by supra works, that may be easier. If not, then you would, of course, have to use local to global to convert the coordinates from the mc to actual coordinates on your main movie.
also, you don’t want this movie to continue doing this once the movie plays, so maybe best to assign it by putting something like this on the timeline (assuming the movie’s name is “sqr”):
since this movie is square, there’s no reason to evaluate the shape - that’s why the last argument in hitTest is false now. also note that “this” has been added before _parent since the default timeline is no longer sqr.
this method allows you to cancel it once it happens.