Flash tutorials | Flash video tutorials | Flash actionscript | flash animation | flash menu | flashconf.com Flash tutorials, Flash video tutorials, Flash actionscript, flash animation , flash menu

7Feb/100

How to Add Interactivity to a Button Inside Adobe Flash CS4

short video tutorial on how to make a button "work" inside Adobe Flash CS4. It's a little different with the new ActionScript 3.0, so I decided I'd make a video on it. I'd also like to tell you that in ActionScript 3.0, all the actions are in the timeline, meaning you cannot give objects their own set of actions anymore.

Actions used in the video.

Give the object an instance name first, as shown.

Then, add an event listener like:
instanceNameHere.addEventListener(MouseE vent.CLICK,mouseClick);

Then, you have to define the function, mouseClick.
function mouseClick(event:MouseEvent):void
{
insert what you want to happen here
}

Possible actions:
You can go to another frame and play the video: gotoAndPlay(framenumber);

You can go to another frame and stop the video:
gotoAndStop(framenumber)

You can play the video:
play();

You can stop the video:
stop();


Similar Posts:

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.