PDA

View Full Version : Var.: Alpha Numeric Expression?


THEwagner
08-29-2006, 01:44 PM
Hello,
I’m in a real pickle. I need to set “myvar” to the alpha numeric expression: “00N30000000tM2x”. Any help would be more than awesome!





//--------Ideal, but produces a syntax error: -------//

00N30000000tM2x =mycombo.selectedItem.label;



//--------Original Code --------------------------//

myvar=mycombo.selectedItem.label;

Kraken
08-29-2006, 01:55 PM
var myVar:String = "00N30000000tM2x";

mycombo.selectedItem.label = myVar;


something like that?

THEwagner
08-29-2006, 02:11 PM
Thanks for the quick reply! Unfortunately this is still not working . I was trying to pass the selected item from a comboBox to a dynamic text field which had the assigned variable of “00N30000000tM2x” so that the selected item gets sent to me in a e-mail.


Flash doesn’t play nice with dropdown menus and forms? Yes/No?

Kraken
08-29-2006, 02:14 PM
don't use variables for the values of a textField. Use its "text" property:

myTextfield.text = mycombo.selectedItem.label;

THEwagner
08-29-2006, 02:23 PM
Thanks for the tip. Everything is now operational!
Very cool, Very cool.