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: Jason White
Date: Sat, 24 Jun 2000 02:29:27 +0100

Randy,

Variables are sensitive to timelines (as I recently learned the hard
way)...within a tell target, it will (I am pretty sure) look inside that
target's timeline for the expression/variable you are referencing.
Explicity call the variable or set it within the target you are
after...Actually calling it from within the tell target is going to be very
difficult or impossible...but try it this way...

***Setting the variable in the target before doing tell target***
Set Variable: "frameLabelToPlay" = "anim_"& x & "_" & y
Set Variable: "/anim_mc:frameLabelToPlay" = frameLableToPlay
Begin Tell Target ("/anim_mc")
Go To an Play (frameLabelToPlay)
End Tell Target

FYI...I decided to test this on a piece I've been playing with..and it
worked! Here's my script. I have a movie clip with instance name
'server2'. There is a frame in it called 'process' which is where the
animation starts..
On (Release)
Set Variable: "/server2:frame" = "process"
Begin Tell Target ("/server2")
Go to and Play (frame)
End Tell Target
End On

If you're concatenation is all good then this should work for ya.

Cheers,

Jason

>Hi Folks,
>
>Well I've rummaged around for an answer and tried messing with the syntax
>but I can't seem to get it right. I'm starting to think it doesn't work this
>way and that I'll have to do some math and reference the movie clips frame
>by number instead of label.
>
>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
>
>Anyway, my Director thinking doesn't work here. Is there a way to do this?
>
>TIA,
>Randy
>



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


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