I made a custom class to control navigation but I am having trouble getting the gotoAndStop to affect the time line.
Here is the custom class.
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.display.Stage
public class NavButton extends MovieClip
{
public var _destination:String
public function NavButton()
{
this.addEventListener(MouseEvent.CLICK, onClick);
this.addEventListener(MouseEvent.ROLL_OVER, RollOver);
this.addEventListener(MouseEvent.ROLL_OUT, RollOut);
}
public function onClick(event:MouseEvent):void
{
_destination = event.currentTarget.name;
gotoAndStop(_destination);
}
private function RollOver(event:MouseEvent):void
{
trace("rollover");
this.scaleX = 1.5;
this.scaleY = 1.5;
}
private function RollOut(event:MouseEvent):void
{
trace("rollout")
this.scaleX = 1;
this.scaleY = 1;
}
}
}
Thanks in advance!