Flasher Archive

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


Subject: Re: FLASH: if statements
From: John Croteau
Date: Tue, 21 Sep 1999 20:54:17 +0100

Hi Gamut Studios,

> Ok here is the deal I have six buttons and a six frame movie clip of
> a highlight that goes around the buttonsone at a time(I cannot have the
> highlight as a buttonstate) on a keycommand
> arrow,L,R,U,D it tells target to movie clip to go to a frame in the clip,
> that has the highlight
> over the correct button,I need to do (I think)an if statement thats says if
> the current frameof the
> movieclip is (whatever) than go to frame whatever. what is the actionscript
> to get the current target
> and frame value I keep getting syntax errors. could anyone help please!
Why don't you just apply two actions one to apply the Go to Action to
highlight the button and a secnd Tell Target to go to the correct frame
of the timeline (use labels). The / refers to the main timeline and Left
is the label on the main timeline to go to.

Begin Tell Target ("/")
Go to and Stop ("Left")
End Tell Target

If you need to assign a variable set Button to R, L, T and B in your
buttons as below for L:

Set Variable: "Button" = "L"

Then check the state of the variable Button like (Only 2 are shown):

If (Button eq "L")
Go to and Stop ("Left")
Else If (Button eq "R")
Go to and Stop ("Right")
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/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratchinwag [dot] com. Problems to: helpatchinwag [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratchinwag [dot] com


Replies
  FLASH: if statements, gamutstudios

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