This content has been marked as final. Show 5 replies
give your textfields different instance names.
and you should use their instance names to assign their htmlText property instead of using variables or you may encounter other problems.
Thanks, that certainly seems to get over the problem. I was starting to think it was me :), but obviously displaying variables in a html text box can be a bit buggy in flash.
I've named them box1 and box2 and used box1.htmlText=..... to change the values, it now works fine.
Many thanks for that.
you're welcome. but that's not a flash bug. that's coder error.
Giving them the same instance name was an error on my part, I think it happened when I copied the text box across, but even without the instance names or different instance names, the set-up only worked when the html didn't come via an array. Perhaps not a bug, but an anomaly.
I think I need to get out of the practice of using the preference panel to assign variables to text boxes (something I do a lot when debugging), and one barrier that's held me back from switching to AS3. Now you've introduced me to htmlText(), there will be no holding me back :-)
great. using instance names and adding all code to the timeline (instead of instances) are good habits and make debugging easier.