Flasher Archive

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


Subject: Re: FLASH: controlling two tell targets....
From: 2Nerotik
Date: Mon, 22 Nov 1999 17:12:52 GMT

Yes this is the best way of doing this.

One slight addition to make things a little easier.

Assign the If statements to a blank Keyframe Label them
and then do a Call action to the Label name.

Here's how:

At the very end of your movie add 3 Blank KeyFrames and by at
the end I mean after the last stop action as you don't want them
to play with the movie normally.

Label Each KeyFrame, for this example KF 1 will be foo1, KF 2 will be foo2 etc

KF1 (Labeled foo1)
If (sarah_val=1)
Begin Tell Target ("/MC foo1")
Go to and Play ("close")
End Tell Target
End If

KF2 (Labeled foo2)
If (sarah_val=2)
Begin Tell Target ("/MC foo2")
Go to and Play ("close")
End Tell Target
End If

KF3 (Labeled foo3)
If (sarah_val=3)
Begin Tell Target ("/MC foo3")
Go to and Play ("close")
End Tell Target
End If

Now in button one:
On (Release)
Set Variable: "sarah_val" = 1
Call ("foo2")
Call ("foo3")
Begin Tell Target ("/MC foo1")
Go to and Play ("open")
End Tell Target
End On

Repeat for the next 2 buttons replacing foo2 with foo1 for the 2nd
button and foo3 with foo1 for the 3rd button.

open and close would be replaced with your labels for the opening and
closing keyframes.

As you can see assigning actions that are used several times in a movie to
blank KeyFrames and doing calls to them saves on typing, time and space.

At 05:30 PM 11/22/99 +0100, Thomas S. Bilz wrote:
>You don't need a special variable. You can define a new one
>and set this variable to 1,2 or 3. So you'll know which button was
> pressed. So when the second button was activated you must define:
> Set Variable: "sarah_var" = 2
>In another frame you can insert an if-statement:
> If ( sarah_var = 2) then
> Tell Target....
> End If
>
>And so on...
>
>Thomas
>
>
>Sarah Lamont wrote:
> >
> > thank you...
> > the thing is, I don't know how to do that. See, I was thinking I could
> > name the middle of the tell targets a certain variable, and then use the
> > If, then statement to say If the variable of this telltarget equals this
> > middle thing, then play it also. But I don't know the right syntax to do
> > that. What varible could I use? Do you know what I mean? thanks for any
> > help.
> > :]sarah
> >

.oOo.
|| Outside of a dog, a book is man's best friend.
|| Inside of a dog, it's too dark to read.
||
|| Addicted 2 Swing ---> http://www.nisa.net/~2nerotik/
|| Fontaholic ? ---> http://www.fontsanon.com
|| HTML Writers Guild ---> http://www.hwg.org


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
  Re: FLASH: controlling two tell targets., Sarah Lamont

Replies
  FLASH: controlling two tell targets...., Sarah Lamont
  Re: FLASH: controlling two tell targets., Thomas S. Bilz
  Re: FLASH: controlling two tell targets., Sarah Lamont
  Re: FLASH: controlling two tell targets., Thomas S. Bilz

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