Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: pause button
From: Paul
Date: Sun, 31 Oct 1999 19:49:44 GMT

Title: Re: FLASH: pause button
Peter,

Yes you can use just one button to do this.

You'll need to use a variable too so that each time you press the button it will alternate between playing and stopping.

First set a global variable (say STATUS) on the first frame of the main timeline. Set STATUS = "playing" (assuming your movie will start playing immediately.

You'll need to use an IF..THEN..ELSE action within the DOWN state of the button.
The first action will state that if the STATUS="playing" then STOP and set STATUS="paused". In the ELSE part of the statement set the action to be PLAY and STATUS="playing". Notice that you don't need to IF statements in an If..THEN..ELSE.

Let us know if you encounter problems with this.


--
Paul
IC TRAINING (INTERNATIONAL)
Specialists in Flash, Dreamweaver and Internet training
Scheduled courses and Distance Learning by CD ROM (with supporting documentation)

----------
From: "Peter Colman" <hbreth10atscu [dot] edu [dot] au>
To: "flash" <flasheratchinwag [dot] com>
Subject: FLASH: pause button
Date: Sun, Oct 31, 1999, 2:13 pm


DEAR FLASHERS
<HOPING SOMEONE CAN HELP
WORKING ON A FAIRLY SIMPLE PROJECT
WHICH INVOLVES A SERIES OF PICTURES AND TEXT
CONSTANTLY MOVING IN SEQUENCE
WQNT TO ASSIGN AN ACTION TO A BUTTON TO PAUSE IF THE VIEWER
NEEDS MORE TIME TO READ THE TEXT AND TO CLICK THE SAME BUTTON TO START AGAIN
OBVIOUSLY I CAN USE TWO BUTTONS ONE TO PLAY AND ONE TO STOP
CAN I ASSIGN TWO ACTIONS TWO ONE BUTTON
SURE THIS HAS A SIMPLE ANSWER
THANKS IN ADVANCE
PIPE


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]