Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: coding buttons |
From: | Paul |
Date: | Wed, 27 Oct 1999 22:33:36 +0100 |
You mean to toggle a button on and off visually?
Set up a movie clip with the button in the up state in one frame and the
down frame in another. Then create an invisible button instance which is
within the movie clip. Use only the HIT frame of this button to define the
HIT area.
Double click on this button instance to display the instance properties.
Select ACTIONS from the tabs.
Your first action will be ON MOUSE EVENT from the actions list. Choose this
and then select RELEASE. You'll need two things; a variable called, say,
ButtonState. You'll also need an IF THEN ELSE action to make the button
toggle properly (i.e. permanently on or permanently off). Your action may
look something like
On (release)
IF (ButtonState = "Up")
Go to and stop (1)
SetVariable (ButtonState eq "Down")
ELSE
Go to and stop (2)
SetVariable (ButtonState eq "Up")
END IF
END on
Each time the user clicks the (invisible button), you're animation will be
forced to move from frame 1 to 2 (up to down) in one instance and frame 2 to
1 (down to up) in the next.
I don't know if this is what you're asking but it's an answer to an
otherwise interesting question. (Excuse me if there's syntax or spelling
errors as I'm writing this e-mail on the fly).
--
Paul
IC TRAINING (INTERNATIONAL)
Specialists in Flash, Dreamweaver and Internet training
Scheduled courses and Distance Learning by CD ROM (with supporting
documentation)
----------
>From: Helena Grimbergen
<IMCEAEX-_O=GO+20MAN+20GO+20PTY+20LIMITED_OU=GO_CN=RECIPIENTS_CN=HELENA@goma
ngo.com.au>
>To: "'flashershocker [dot] com'" <flashershocker [dot] com>
>Subject: FLASH: coding buttons
>Date: Wed, Oct 27, 1999, 10:21 am
>
> Hello all,
>
> there's probably a very simple answer to this, but I can't figure it out, so
> here goes:
>
> Is there an easy way in Flash 4 to make a button stay on its 'mouse down'
> state until another button is clicked?
>
> Thanks very much!
>
>
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Streaming Media WEST '99 Conference & Exhibition
> "The Worlds largest Internet Audio & Video Event"
> December 7 - 9, San Jose Convention Center, California
>
> Reserve your space today at http://www.streamingmedia.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpchinwag [dot] com
>
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California
Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]