Wednesday, April 20, 2011

USING INPUT & DYNAMIC TEXT BOXES

USING INPUT & DYNAMIC TEXT BOXES

Let’s learn  how to do it….

1.         Open a new file in Flash by selecting File > New

2.         Choose a background colour. Then, type the text using Text Tool ( A ) from the tool box. Rename the layer with “soalan”.



3.         Make sure the properties panel is visible at the bottom of the screen. We are now going to look through the different options for text in Flash.



4.         In step 2, you created a text box. We are now going to convert this text box to an Input text box. This is the type of text box that the person using your flash file is able to type into.

5.         The next step is to make this box a variable, to do this enter a name for your variable in the variable name cell. I have called my variable name. the variable name can be anything you like really, providing you remember it and enter the same name in the dynamic text boxes cell.



6.         Insert a button. How to get from the libraries? Go to Window menu > Common Libraries > Buttons. Then, choose the button that you like. Drag button to the stage. Right click at the button and choose Actions. Type the action script to run the button.


7.         Insert a layer stop. Right click and choose Actions. Write the action script for layer stop.


                                var stands for variable. We put name as our variable just now.
                                Name=” ” means that name equal to any input that you wished.
                                                It doesn’t assign to any value.

8.         Insert a layer Jawapan and insert keyframe at Frame Number 5. Then, type the text using Text Tool. Next, change it into Static Text. When you want to display the input variable, change into Dynamic text. When you want to type the normal text, change it into static Text.

                   Static Text = for the normal text that you always used.
                   Dynamic Text = for display or print the input variable or known as output.
                   Input Text = for input from the user.

                   Unclick the Show border around text. Put the variable as “name”.



9.         Right click keyframe at Frame Number 5 in layer jawapan and choose Actions. Put action script  stop();


10.       You should now be able to check that your text boxes work by selecting
Control > Test Movie. When you type your text into the input text box, you will see it appear in the dynamic text box.

Now let see… yu hooo

dah siap pun.... huhu












No comments:

Post a Comment