Publications : Digital

This is the class blog for "Publications : Digital" - the 3rd year Integrated Media studio for online and digital artists' projects at the Ontario College of Art and Design in Toronto. The course is taught by Associate Professor Judith Doyle.

Tuesday, February 07, 2006

 

Recipe for a noisy button

Hi folks - for any of you who are finishing up today or over reading week, here is a recipe that should help you complete the assignment --

CREATING A BUTTON WITH SOUND IN FLASH / A recipe by Judith


We will create a button that plays a sound when you roll over it. When you roll out, the sound will stop.

Create a shape then MODIFY → CONVERT TO SYMBOL → GRAPHIC (name)

INSERT → NEW SYMBOL → BUTTON (name)

Drag and drop an instance of your graphic into the UP frame. Then INSERT → TIMELINE → KEYFRAME to the over, down and hit frames.

(You can create visual changes or use different graphics, pictures or movie clips in the “up” “over” and “down” positions, to create lively effects prompted by mouse actions. And remember – by turning the alpha to zero, you can make the button invisible!)

CLICK ON “Scene 1” to return to the canvas. Drag an instance of your button from the LIBRARY onto the STAGE.

Now you will name your button. Open the property inspector WINDOW → PROPERTIES

In the INSTANCE NAME box, type a name (ActionScript relies on these names to identify objects)

Now we will add a BEHAVIOR to the button.

First, make sure the instance of your button on stage is selected.

Go to WINDOWS → DEVELOPMENT PANELS → BEHAVIORS. Click on the + sign to add a behavior → SOUND → STOP ALL SOUNDS

Click the default word “RELEASE” and change to “ON ROLL OUT”. This will make the sound stop when the cursor rolls out of the hit area.

GOOD LUCK AND HAVE FUN!

Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

January 2006   February 2006   March 2006   April 2006   January 2007   April 2007  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]