Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Dynamically name MCs for Tell Target |
From: | Jon Williams |
Date: | Fri, 7 Jul 2000 14:23:14 +0100 |
Just make the target of your "Tell Target" an expression,
and drop in "currentcrayon" as the target.
currentcrayon will need to be a string and will need to follow
the same rules for targeting as a raw string, so you might need
to append a path. for example.
if the full path to the red crayon is "/palette/colors/red"
and currentcrayon contains "red" then you need to target like so:
"/palette/colors/" & currentcrayon
or, you need currentcrayon to contain the full path.
-jon
Hal Medrano wrote:
> Jeez, I thought this would be easy but I'm having trouble with the syntax.
>
> I'm making a coloring book in Flash. The user has 18 crayons to choose
> from. Each crayon is an MC with two frames: up and down. When the crayon
> is selected, it is up. When the user selects another crayon, I want
> whatever crayon is currently up to go to frame 1 (down).
>
> What I need is for currentcrayon to set itself as a variable, so that I can
> then target "currentcrayon" (whichever crayon it may be) to Go to Frame 1.
> But I'm messing up the syntax and can't get it to work.
>
> Anyone have a tutorial, or can just scribble out the code on the back of a
> napkin, I'd be most appreciative.
>
> Thenkew,
>
> --------------------------
> Hal Medrano
> New Media Group
> U S WEST Creative Services
>
> 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 helpchinwag [dot] 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 helpchinwag [dot] com
Replies
FLASH: Dynamically name MCs for Tell Tar, Hal Medrano
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]