|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dynamic Text Box
Hi all, Can somebody tell me how to get data that is being displayed in a dynamic text box in actionscript variable.
for example, lets say the dynamic box is displaying 12345 how do I say to the actionscript, if the number 2 is shown, then play this movie clip. and if the number 4 is shown, then play this movie clip. Any ideas? and is this possible? Many thanks |
|
#2
|
|||
|
|||
|
Hi, if your using flash 5 or greater then the text box has an option called "Variable". If you give this a name then you can check that. Say your text box is on the main timeline and you called the variable myVar, then you can use:
if(Number(myVar) == 2) { //do whatever } If the text box is in a movie clip called "Tongo" then you can use: if(Number(Tongo.myVar) == 2) { //do whatever } |
|
#3
|
|||
|
|||
|
Hey thanks Tann San, have not tried it out yet, but thanks for the responce.
ORANGE900 |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Dynamic Text Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|