But i cant get them to do anything when they have been clicked I have four of them which i want to GOTO frame 1,77,78,79 when pressed but nothing i've tried seems to work. the code i have so far is
import flash.events.MouseEvent;
//Listens for the mouse over the button and off the button
Home_Button.addEventListener(MouseEvent.ROLL_OVER, btnOver);
Home_Button.addEventListener(MouseEvent.ROLL_OUT, btnOut);
//Same again for the Picture Button
Picture_Button.addEventListener(MouseEvent.ROLL_OVER, btnOver);
Picture_Button.addEventListener(MouseEvent.ROLL_OUT, btnOut);
//and again
Audio_Button.addEventListener(MouseEvent.ROLL_OVER, btnOver);
Audio_Button.addEventListener(MouseEvent.ROLL_OUT, btnOut);
//and again
Video_Button.addEventListener(MouseEvent.ROLL_OVER, btnOver);
Video_Button.addEventListener(MouseEvent.ROLL_OUT, btnOut);
//This acts on any event listener of the mouse over and
//go's to the 'Button' and plays the first half of the frames
function btnOver(event:MouseEvent) {
event.target.gotoAndPlay("over");
}
//This code does the same again for the mouse out event playing
//the second half of the frames
function btnOut(event:MouseEvent) {
event.target.gotoAndPlay("out");
}
This post has been edited by stevedench2003: 05 February 2012 - 06:26 PM

New Topic/Question
Reply


MultiQuote





|