Official website for Web Designer - defining the internet through beautiful design
FOLLOW US ON:
Author: Mark Billen
11th May 2010

Animated interfaces with Flash CS4’s Bone tool

12 Add stop commands

12 Add stop commands

Animated interfaces with Flash CS4’s Bone tool

Create a new layer and add a keyframe at frame 1. Open the ActionScript editor and add a ‘stop();’ command for frame 1. Choose frame 47 and add a keyframe, again in the ActionScript editor add another ‘stop();’ command. This will ensure the Movie Clip does not play unless told to do so. Then return to the main stage of Scene 1.

13 Add an instance name

Animated interfaces with Flash CS4’s Bone tool

Add the ‘armature’ Movie Clip to the stage and position as shown above. Use the Transform panel to resize to 60%. In the Properties panel give this an instance name of ‘arm_mc’. Now create a new symbol, make it a button and name it ‘control’, then press OK. Draw a rectangle for your button.

14 Control by code

Animated interfaces with Flash CS4’s Bone tool

Return to the main stage of Scene 1 and drag the button onto the stage naming the instance ‘content_btn’. Create a new layer, open the ActionScript editor and add the code shown above. Press Ctrl+Enter to test the SWF file, when you press the button it should move the arm in and out of the stage.

content_btn.addEventListener(MouseEvent.CLICK, moveOn);
function moveOn(Event:MouseEvent):void {
arm_mc.play();
}

You may download the referenced project files by clicking here

Pages: 1 2 3 4

  • Tell a Friend
  • Follow our Twitter to find out about all the latest web development, news, reviews, previews, interviews, features and a whole more.

    3 Comments »

    • vikaas Chowdhary said:

      we want flash

    • Jayson Winfield said:

      I have just started a new job at Dream Media Design Manchester as a trainee and i have been looking around the web for good tips to make sure I impress my new boss, so anything to give me a leg up the flash design ladder is great, designing at uni is nothing like doing it at work the pace is so so fast, I’m on my dinner browsing this site and I just wanted so say thanks to all you guys who left this fantastic content ;) I look forward to reading much more so please keep up the good work I can’t wait to leave articles of my own!!!! thanks

    Trackbacks

    What's your opinion?

    Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

    Be nice. Keep it clean. Stay on topic. No spam.

    * Required fields