Flasher Archive

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


Subject: RE: FLASH: NEWBIE QUESTION ........... I am pulling my own hair o ut of my head..... ......
From: Paul Willoughby
Date: Mon, 9 Oct 2000 13:34:40 +0100

>>Tony Indelicato wrote:

...But the TellTarget action doesn't recognize my assigned variable?

Hi Tony,

Is this still giving you problems? What is difficult to tell from your post
is where you are actually doing the TellTarget. Is it a frame action? If so
where is it? For the movie to pick up the variable it needs to be set and
then play through another keyframe to act on that variable. If the frame
with the button is at the same point in the movie as the code that responds
to it, then it's never gonna work (unless it's all part of a loop). So it
would be like:

Frame 1 - button with this action
On (Press)
Set Variable: "movieToLoad" = "B"
End On

Frame 2 - a frame action
Begin Tell Target (movieToLoad)
Play
End Tell Target

If your movie was just like this it would keep looping around, so once a
button was pressed the loop will keep playing. To stop this add a frame
action at the end of your clip that resets the variable i.e.
SetVariable:"movieToLoad" = "".

A better alternative might be to put all your code on the button e.g.

On (Press)
Set Variable: "movieToLoad" = "B"
Begin Tell Target (movieToLoad)
Play
End Tell Target
End On

If there's just one frame in the movie then the clips will play once for
each time you press the button.
There are a lot of different ways you could force the clip to play once,
play all the way through, a certain number of times etc. and this might
effect where you put the code. The golden rule is to make sure you've set
the variable before you try to execute any actions based on it's value.

hth

paul




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]