Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: using variables |
| From: | Dave Hollinden |
| Date: | Wed, 21 Jul 1999 18:35:10 +0100 |
Hi Karen,
When you assign a new value to the variable that displays in your text
field, you need to target the variable in the variable space where it
exists. In other words:
If the text field is on the main timeline, and you're sending it a new
value from a button in a movie clip, then the action in the button needs to
be Set Variable and the variable name should be /:variable_name.
If the text field is in the same movie clip as the button, then you should
do a Set Variable with a name of variable_name.
Also, try going into Test Movie and typing control/alt/v to open the
variables window. You can monitor the values of the variables as you set
them. You need to retype control/alt/v to update the window whenever you
set new variables.
If that doesn't work, please post more details, or email me directly. I've
struggled through this already and can help.
Dave
At 05:48 PM 7/20/99 -0700, you wrote:
>Can anyone help me figure this out before my brain completely melts
>down. I actually created a simple game in Flash 4 but I cannot get my
>scoring system to work.
>
>In another movie I successfully got a button to add 1 in a text field
>everytime it is clicked. The button and variable are both in the main
>timeline. I referred to the variable in that case as /:variable_name.
>
>In the game I identify the variable from a button in a movie clip.
>The only way I can get the counter to half-way work is also to
>identify the variable as /:variable_name. This doesn't make sense to
>me but at least it almost works in that instead of adding or
>subtracting all I can get is the amount which is either a 1 or a -3
>or -5 (for instance). It will not add or subtract from the current
>value. Any other way of identifying the variable does not work at all.
>I keep looking at it and it should work the way I did it.
>I usually like to try to figure things out myself, but I I must be
>missing something simple here.
>
>Karin
>
>
>------------------------------------------------------------------------
>To UNSUBSCRIBE send: unsubscribe flasher in the body of an
>email to list-manager
>N.B. Email address must be the same as the one you used to subscribe.
>For info on digest mode send: info flasher to list-manager
>
>
Dave Hollinden
Audio Engineer
Jet City Studios, Seattle
dhollinden
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
Replies
FLASH: using variables, Karin Christensen
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

