Flasher Archive

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


Subject: Re: FLASH: Button dilemma!
From: John Croteau
Date: Sun, 12 Dec 1999 16:30:20 GMT

Hi Erich,

> I have a MC on my main time line that has 3 buttons in it. When you
> press either one, another MC plays and then stops. All is good. But,
> what I want to happen is when another button is pressed, the previous MC
> closes and/or finishes it's movie in it's own MC. I have been playing
> around with Tell Target and Variables but nothing is working!
> An example of my script:

> On (release)
> If ("contact" = "1")
> Begin Tell Target (_level0/contact,21)
> End Tell Target
> EndIf
> Begin Tell Target....etc
>
> What I was trying to do was set a variable when the button was pressed
> (Set Variable "contact" = "1"). Then when another button was pressed, I
> put the above in the button's action. If contact = 1 then go finish
> playing the MC at frame 21 then come back and play the next MC for the
> button pressed.
I am sssuming the MC you are playing is contact on the main timeline in
the same movie.
I suggest you use Labels.
No need to use _level if in the same movie. start with / for the main
timeline.

On (Release)
If (Contact = 1)
Begin Tell Target ("/contact")
Go to and Play (21)
End Tell Target
End If
If (Contact = 2)
Begin Tell Target ("contact")
Go to and Play ("Contact2")
End Tell Target
End If


--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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 helpatchinwag [dot] com


Replies
  FLASH: Button dilemma!, Erich Miller

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