|
|
FrozenHaddock Tutorials: Introduction to Variables In this tutorial you will learn how to make an variable textbox containing a number, then make buttons to alter it's value. first let's make a blank keyframe, then on the frame's actions put-
This will set your variable start value to 1. Try a different number if you want to, but don't test the flash movie yet as it will not work at the moment. Now make a new keyframe and put the stop function on it-
Now let's make a plus button and a minus button which will change the variables. If you need help with buttons, try our first
Now let's make a text box but don't put anything in it. Now we need to change it from a static text field, to a dynamic one.
Now, as you can see, our Dynamic text field is clear and blends in to the background. This is not vital, but it's much easier to see.
To sort this we click the icon below-
Now we can test this flash movie to see if it matches the variable we set at the start.
There's the minus button.
And here's the plus button. Now test the movie again. If it works, you could try setting different values, so you could
Written by: Dazza_13
|
|