Styling text from URLLoader in AIR for iOS
so i have been trying to figure this out for the last couple of days, the code is below without any styling. I have tried creating a TextFormat instance and have tried just applying the properties to myTextField_txt and I even tried to style the text on the website first and then change myTextField_txt to htmlText, unfortunately that didn't work either. I just want to change the size and color of the text, any help would be greatly appreciated, thanks!
var myTextLoader:URLLoader = new URLLoader();
var myTextField_txt:TextField = new TextField();
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
myTextField_txt.x = 100;
myTextField_txt.y = 100;
function onLoaded(e:Event):void {
myTextField_txt.text = e.target.data;
addChild(myTextField_txt);
}
myTextLoader.load(new URLRequest("..."));