
Welcome Guest
|
#1
|
|||
|
|||
|
Problems with "if" statement generating dynamic text.
Hi,
I have been doing some work with conditional statements in particular the if & if else type. Basically the idea is that I have 2 text fields on stage (An Input type called pup & an Dynamic type called long_txt) when a user submits a surname through the input box & presses the button the surname is compared against a couple of surnames & either throws back a trace message with the corresponding first name or in the case of a match to the surname ward, generates some text for the Dynamic text field long_txt. The problem is that the dynamic field long_txt. Will not generate the required message. I have checked the syntax & can find no logical error & wondered if any would be able to help. I have set out below the actual code to assist: stop(); pup="" my_btn.onPress = function (){ if (pup=="ward"){ this.long_txt.text="Alright Tel!"; } else if (pup=="gane"){ trace ("Hello Mart"); } else { trace ("Who are you?"); } } Thanking you very much in anticipation John Dwyer (London) |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamic Text - change text box variable on click | kenisswell | Flash MX ActionScript |
10 | 11-01-2005 09:20 PM |
| Scroll bar - Dynamic text field problems | PUP100 | Flash MX ActionScript |
0 | 01-28-2005 10:40 AM |
| Problems with dynamic text display... | bearslife | Flash MX 2004 |
0 | 01-19-2005 07:10 PM |
| Creting input textfield | denizci2000 | Flash MX |
5 | 12-15-2004 08:58 PM |
| Problems with dynamic style sheet text in flash player 6 | d60eba | Flash MX |
2 | 11-09-2004 10:54 AM |




