Hi there,
Ok, so I’m setting some values in an XML file then importing then into flash and displaying them in text boxes. All this works sweet, apart from sometimes one of the values maybe empty, which makes flash display “undefined” in the text box which doesn’t look pretty. So I try to write some code to check this after the text values have been defined and replace it with a couple of spaces
First I try this…
[AS]if (textOne == undefined){
textOne.text = " ";
}[/AS]
no luck, so I try this
[AS]if (textOne.text == undefined){
trace(‘nothing here’);
}[/AS]
no love again, so i try this
[AS]if (textOne.htmlText == undefined){
trace(‘nothing here’);
}[/AS]
This is driving me crazy!!! Can anyone tell me what I’m doing wrong?