Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player


Summary:

Pause using ActionScript in Flash

    ●   Does yours do this when you hit Cmd(⌘)+Enter?

    ●   You need a Pause command to make your movie scroll slowly through the scenes.


Learn About:

ScenesPauseFrames

   •   This tutorial is part of the Aesop's Fables Project and the Drag and Drop Project.


Other People's Work:

Here are examples of work inspired by this tutorial.

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

http://forums.creativecow.net/thread/190/867730

http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3

Step #1: Open your Project in Flash ~

Open YOUR PROJECT in Flash …

 

… (Remember: all these tutorials are intended to be
applied to YOUR PROJECT) …

… create a new layer anc call the layer Actions (if you don't have one already) …

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Lock the layer and make sure it's on top!


Step #2: Copy and Paste the Code Function ~

Click on your Actions keyframe - you may already have some code there: keyframe actions

frame 1

Hit Alt (⌥)alt option key F9 f9 - and open the Actions panel or go to: Window > Actions

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Copy and paste this code in the Actions panel below any other code you may have there …

function myPause(secs:Number) {
    stop();
    var myTimer:Timer = new Timer(secs * 1000, 1);
    myTimer.addEventListener(TimerEvent.TIMER, resume);
    myTimer.start();
    function resume(e:TimerEvent) {
        play();
        myTimer.removeEventListener(TimerEvent.TIMER, resume);
    }
}

The code should look something like this:

pause


Step #3: Pause AGAIN ~

Now go to each Scene or Frame where you want to pause, make sure there's an Actions layer there, and …

… paste this code which is very simple:

myPause(5); //For a five second long pause

NOW IT's JUST A MATTER OF PASTING THIS SIMPLE CODE WHEREVER YOU WANT A PAUSE!


Step #4: Adjust the Length of the Pauses ~

The higher this number:

You need to give readers time to read the text, usually from 5 to 15 seconds. A good rule-of-thumb is to read the text outloud and time yourself, that's usually how long you need to read it.


Last Step: Save and View your work ~

View your work by hitting the keyboard shortcut: Cmd(⌘)+Enter cmd enter

Save your work as - FIRST_NAME_LAST_NAME_PROJECT_NAME.fla]

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

 

•   ALWAYS save your projects using the following naming convention:
FIRST_NAME_LAST_NAME_PROJECT_NAME


  •   DO NOT name your project any other way - Improperly named projects will not receive credit and you will be sad.


  •   NEVER leave your work on the desktop or depend on a flash drive - instead, save your work in a folder you can find later - preferably on a virtual drive where it can be backed up.