Here is what i would like to do. I have Multiple movieclips that when you hover over, a info box pops up and stays active until the mouse is moved away from the info box. Simple enough. I have multiple movieclips and i cannot get more than one to work. In order for the movieclip to work the instance name is ‘mc’ and this is the code i am using:
mc.addEventListener(MouseEvent.ROLL_OVER, overHandler);
function overHandler(evt:MouseEvent):void {
mc.gotoAndStop(2);}
mc.addEventListener(MouseEvent.ROLL_OUT, outHandler);
function outHandler(evt:MouseEvent):void {
mc.gotoAndStop(1);}
I have tried duplicating the text and changing it to ‘mc1’ to match the instance name of my other movieclip and get a duplicate error on the ‘function…’ line. When i preview only the ‘mc’ instance works.
What am i doing wrong?
Thanks!