PDA

Click to See Complete Forum and Search --> : Symbol Swapping???



minger
04-04-2002, 02:37 PM
Here's what I need to do and have no clue how to. I want to have a symbol, which will just be some text, that when you mouseover it, it dissapears and never comes back. I am aware that if I made it a button, I could make the "OVER" keyframe blank, but then it would come back onmouseout. I need the symbol to be gone for good.
How is this done?

Thanks in advance for any help.

DonDanny
04-05-2002, 08:49 AM
The code for the Object should look like this (Flash 5):

onClipEvent(enterFrame){

// test if mouse is over the clip
if(this.hitTest(_parent._xmouse,_parent._ymouse)){

// do one of the following:
// 1. if you want to unload a movie on the stage, works with a clip you created manually
this.unloadMovie();

// 2. if you want the movie to be on stage, create an empty keyframe "empty"
this.gotoAndStop("empty");

// 3. or set visible to 0
this._visible = 0;

// 4. or if it is an attached Movie clip
this.removeMovieClip();
}
}

minger
04-05-2002, 10:44 AM
Hey, thanks a lot. Looks like it should work exactly how I want it to.

Thanks,