Tuesday, 25 September 2012

AS3 Buttons

Today I learnt how to create buttons in Action Script 3.

I created a four page wesbite by using the following code:

button_5.addEventListener(MouseEvent.CLICK, NextPage3);
function NextPage3(event:MouseEvent):void
 trace('Next Page ')


button_7.addEventListener(MouseEvent.CLICK, PrePage3);
function PrePage3(event:MouseEvent):void
 trace('Previous Page ')

I will likely use this code when making any future projects in ActionScipt 3.

No comments:

Post a Comment