Friday, October 31, 2014

EQ 11

Explain in detail how to add a button? 
 First you take the the square tool and make a decent size rectangle and then you take the text tool then you add the text that says ''next'' and then go there will be different tabs and click the actions then type 
stop(); and go on the wiki and copy the coding then paste it to the actions label and it'll be something like this 

myButton.addEventListener(MouseEvent.CLICK, myButtonClick);

function myButtonClick(ev:MouseEvent):void
{
gotoAndPlay(2);
}
as you can see all of the my buttons click before the period and put a 1 and then where it says gotoandplay2 thats right so it will play the next slide when you click control test movie and then test

No comments:

Post a Comment