I’ve been working on a tutorial for the last 19 mins. A simple flash web page where, when you click on one the small coloured squares, the large square changes to the matching colour.
Yet despite the fact that I’ve followed the tutorial to the letter (it’s a video tutorial) I seem to be getting the same error but the guy’s flash page on the video works perfectly
It keeps comming up with:
Scene1, Layer ‘actions’, Frame1, Line3 1120: Access of undefined property event.
heres the code I’m working on
stop();
function colorNav(Event:MouseEvent):void{
gotoAndStop(event.target.name);
}
black.addEventListener(MouseEvent.CLICK,colorNav);
green.addEventListener(MouseEvent.CLICK,colorNav);
red.addEventListener(MouseEvent.CLICK,colorNav);
blue.addEventListener(MouseEvent.CLICK,colorNav);