This content has been marked as final. Show 4 replies
are you viewing with the flash 9 player plug-in for your browser? ( you can confirm you player version by navigating to http://www.macromedia.com/software/flash/about/
with the same browser you're using to view your swf.
p.s. what did you use to decompile your swf?
Yes, I have Flash 9 on Firefox and IE.
The Decompiler is Trillix.
I've isolated the problem to the XML file that is loaded to the flash. When the button is labeled with a text string and added with addChild, it shows. But when I load the XML file with the data and add with the line below (g[n] is the name of the field, n is index) it only shows in the preview.
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest(" my php generated xml file "));
xml = new XML(e.target.data);
myButton.label = "main"; Works
myButton.label = xml..g[n].text(); Works in flash, but not browser
OK, I don't know what happened, but the text shows now. Only all the formating with TextFormat() is lost.
Why could this be?
you should be using the variable xml within your onComplete function or passing it to another function as a parameter from your onComplete function.