/ Published in: ActionScript 3

Its a nice lil trick ;)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
_xmlLoader.addEventListener(Event.COMPLETE, function(e2:Event):void { _xmlData = new XML(e2.target.data); var titleList:XMLList = _xmlData.Book.title; var titleListLength:int = titleList.length(); _ecoText.text = ''; for(var i=0 ; i<titleListLength ; i++){ _ecoText.appendText(titleList[i]+String.fromCharCode(10,13)); _ecoText.setTextFormat(_ecoFormat); } });
Comments
