Flasher Archive

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


Subject: Re: FLASH: Tell Target > Go to MC frame by label vs number
From: Robert Bleeker
Date: Sat, 24 Jun 2000 04:19:10 +0100

Looks like a lot of people need a good lesson in targeting!! :-)

Helen, you could be right IF the tell target code is actually executed on
the main timeline (which it might not be).
Jason White has to right idea: (here is a translated version to match the
original request)

Set Variable: "/:frameLabelToPlay" = "anim_"& x & "_" & y
Begin Tell Target ("/anim_mc")
Go To and Play( /:frameLabelToPlay )
End Tell Target

Using his code you can execute it anywhere you like and it will still work,
it could be inside a MC that is inside another MC etc. etc. It will still
work as he is using a fixed path from the main timeline.

Randy,
just remember that any code inside the "Tell Target" function is like it is
inside the actual MC you are targeting. So if you want to use a variable you
need to target to it is if you are inside the target MC. That's why it is
very helpful to place the 'frameLabelToPlay' variable on the main timeline
as you always can get to it by using a simple "/:" in front of the variable
to get it.

I usually have a seperate empty MC called "global" on the main timeline so I
have a special place to store my variables, and I can always get to them by
using "/global:" in front of any variable I store in there. Another reason
to use a separate MC is that I can key frame delete it and so erasing any
variables that may be in there.

Sorry for the ramble but it might just help somebody.

Robert

Robert Bleeker
CADRE design
http://www.cadre.com.au
+61-2-96859889

-+-




on 24/6/00 11:14 AM, Helen Triolo at designerati-technica [dot] com wrote:

> Randy Smith wrote:
>>
>> I have a movie clip with 25 labels for example ...
>>
>> label_1_1
>> label_1_2
>> label_1_3
>> ...
>> label_5_5
>>
>> and I'm trying to Go To and Play a label in the movie clip from a variable
>> that has been concatenated in the main timeline. Leading up to this event
>> the variables x and y are set to numbers between 1 and 5.
>>
>> Set Variable: "frameLabelToPlay" = "anim_"& x & "_" & y
>> Begin Tell Target ("/anim_mc")
>> Go To and Play( frameLabelToPlay )
>> End Tell Target
>>
>
> Randy,
> You need to say Go To and Play(/:frameLabelToPlay) because the variable
> frameLabelToPlay is on the main timeline.
>
> ----------------------------------------
> helen triolo � http://i-technica.com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Tell Target > Go to MC frame , Helen Triolo

Replies
  Re: FLASH: Tell Target > Go to MC frame , Helen Triolo

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