Flasher Archive

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


Subject: Re: FLASH: Conditional Actions
From: John Croteau
Date: Tue, 26 Oct 1999 22:07:39 +0100

Hi Tom,

> Can anyone recommend a resource for conditonal actions? I'm trying to use a
> conditional action to play a different background loop for anther scene,
> only if the sound mc is not in the "sound off" frame which is 75. Here is
> the statement.
Your problem is not your conditional statement but the variable
target_currentframe
which should be _currentframe if it was not in the Tell Target then the
varaible would be /start_sound:_currentframe.
A simplified version is below (you only need else not an else if in this
usse).

Begin Tell Target ("/start_sound")
If (_currentframe = 75)
Stop
Else
Go to and Play (85)
End If
End Tell Target


> Begin Tell Target ("/start_sound")
> If (target_currentframe = 75)
> Stop
> Else If (target_currentframe <> 75)
> Go to and Play (85)
> End If
> End Tell Target

> If the music is off the action turns it back on anyway, even though its in
> frame 75

--
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: Conditional Actions, NetworkAuto

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