Showing posts with label Buttons. Show all posts
Showing posts with label Buttons. Show all posts

Monday, February 8, 2010

Art 351 - How To Jump Around The Timeline

Create a new blank layer and call it actions. Select the blank keyframe and open up the Actions palette (Window > Actions).

Here's the basic code for jumping around in your timeline.
To add it, click on a blank keyframe in your actions layer and open up the Actions palette.
In the code below, "button1" is the name of my particular button instance. To give your instance a name, select it on the stage and enter an instance name in the Properties palette.

Also note that the "(10)" after the gotoAndPlay command means I want to jump to frame 10.

stop();
button1.addEventListener(
  MouseEvent.MOUSE_UP,
  function(evt:MouseEvent):void {
    gotoAndPlay(10);
  }
);

Here's the same file with a second button added on frame 1

Monday, February 1, 2010

Art 351 Assignment 4 - Jumpin' Jehosaphat!

This assignment has two parts:

A. Create a library of 10 buttons, just for kicks.

B. Create an interactive timeline-based story the user will navigate using buttons to jump around the timeline.

1. Script and thumbnail out your story. We'll look at these this Monday, Feb 8. Make sure you post your work to your blog.

2. Shawn will be coming in to demo some basic sound recording on Wednesday, Feb. 3!

3. This piece will be due for critique on Wednesday, February 17.

Wednesday, January 14, 2009

Embed a Button




Click the text above and see if this works. I'm not sure why the button is taking up so much space in the blog. Here's the flash file that generated the code. Thanks to Jake for tracking down the embed source code example.
UPDATE--I fixed the whoppin' space around the button issue. If you pay even a small amount of attention to the source code, you'll see that you have to enter height and width pixel dimensions in two places. I only entered them in one place. Oops. Goes along with my typo, I guess.