jrashag
07-29-2008, 11:08 PM
So I had an issue, resolved it and figured out the real issue.
I have data incoming from a socket, it gets parsed into the appropriate variables, which are bindable, and they output the correct information when I alert them after the function is over, however they do not update on my UI.
example:
[Bindable]
var a:String;
[Bindable]
var b:String;
function data(x:XML):void
{
parse data blah blah blah
a = parsedData1;
b = parsedData2;
textarea1.validateNow() //null object error
Alert.show(a) //correct output
Alert.show(b) //correct output
}
<mx:TextArea text="{a}" />
<mx:TextArea text="{b}" />
Aren't my text area's supposed to update their text when the value of a and b change?
edit: Also like to note that I tried using assignments instead of bindable variables and it told me that the access of the textarea's property .text was a null object or reference (Error #1009 I think). I had originally been updating the information right as I parsed it to the text fields but when I ran it, I kept getting the error which is why I went to bindable variables.
edit2: I tried adding a validateNow() to my two text area's which resulted in the 1009 error null object or reference.
I have data incoming from a socket, it gets parsed into the appropriate variables, which are bindable, and they output the correct information when I alert them after the function is over, however they do not update on my UI.
example:
[Bindable]
var a:String;
[Bindable]
var b:String;
function data(x:XML):void
{
parse data blah blah blah
a = parsedData1;
b = parsedData2;
textarea1.validateNow() //null object error
Alert.show(a) //correct output
Alert.show(b) //correct output
}
<mx:TextArea text="{a}" />
<mx:TextArea text="{b}" />
Aren't my text area's supposed to update their text when the value of a and b change?
edit: Also like to note that I tried using assignments instead of bindable variables and it told me that the access of the textarea's property .text was a null object or reference (Error #1009 I think). I had originally been updating the information right as I parsed it to the text fields but when I ran it, I kept getting the error which is why I went to bindable variables.
edit2: I tried adding a validateNow() to my two text area's which resulted in the 1009 error null object or reference.