all groups > flash actionscript > october 2006 >
You're in the

flash actionscript

group:

Strange results from variables


Strange results from variables banthony2
10/24/2006 10:58:07 PM
flash actionscript:
I was writing a simple example of the use of variables for a class, using
trace() to display the results. The movie consists of three input fields and a
button. Once this data is filled I execute the trace() function by rollin over
the button. What I get as a result is a bit strange and something I've never
encountered before. This is the result I get in the Output window.
"<p align="left"></p><p align="left"></p><p align="left"></p>"
Each of the input fields are assigned variables and a new variable adds them
togeter.
var together_var:String= firstName_var + lastName_var + id_var
Can anyone tell me whats going on?
Thanks
Re: Strange results from variables kglad
10/25/2006 2:41:31 AM
Re: Strange results from variables DMennenoh **AdobeCommunityExpert**
10/25/2006 12:01:32 PM
Using variables is not the best way - instead give your fields instance
names and then do: instanceName.text

Otherwise, do as kglad suggested and turn off the html property for the
field.

--
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Re: Strange results from variables banthony2
10/25/2006 1:58:04 PM
AddThis Social Bookmark Button