PDA

View Full Version : Mouse over


peter4th
07-30-2007, 05:01 PM
I'm trying to have a MC slide out to reveal some text.
I get the error: The class or interface 'MouseEvent' could not be loaded.
Also the 'buttonMode = true' doesn't work...
What am I doing wrong?

navibar.addEventListener(MouseEvent.ROLL_OVER, naviOver);
navibar.addEventListener(MouseEvent.ROLL_OUT, naviOut);

function naviOver(event:MouseEvent):void
{
navibar.gotoAndPlay("NavBarOut");
}

function naviOut(event:MouseEvent):void
{
navibar.gotoAndPlay("NavBarIn");
}

navibar.buttonMode = true;

thatblokemike
07-30-2007, 05:10 PM
import flash.display.*;
import flash.events.*;

chuck the imports in ...

peter4th
07-30-2007, 05:45 PM
sorry for my ignorance but I don't quite follow you...

thatblokemike
07-30-2007, 05:47 PM
you need to add those line of code to import the classes your making use off.

put at the head of your code