I might feel a little less strange though if I could solve this: I have a List control that I'm attempting to populate with text from an XML file in the same directory, and yet the control renders but I never see any text.
Under output I get "Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts."
- Code: Select all
import fl.controls.List;
import flash.events.Event;
import flash.xml.*;
import fl.data.DataProvider;
var swfList:List = new List();
swfList.setSize(140,140);
swfList.move(130,45);
var tf:TextFormat = new TextFormat();
tf.font = "Arial";
tf.size = 8;
tf.bold = true;
swfList.setRendererStyle("textFormat", tf);
addChild(swfList);
//ezTipType1Main
var xmlData:XML = new XML();
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load (new URLRequest("swflist.xml"));
xmlLoader.addEventListener (Event.COMPLETE, onXMLDone);
function onXMLDone (event:Event):void
{
xmlData = XML (event.target.data);
var dp:DataProvider = new DataProvider(xmlData);
swfList.dataProvider = dp;
}
this.stop(); //when do I use this.stop?
Oh, this is my first post on player. I believe this occasion requires an emoticon; here -- this one looks vaguely appropriate: