function LoadXML(e:Event):void { xmlData = new XML(e.target.data); ParseBooks(xmlData);} function ParseBooks(bookInput:XML):void { trace("XML Output"); trace("------------------------"); trace(bookInput
AS3 Flash | Load External XML with urlLoader
AS3===var xmlLoader:URLLoader = new URLLoader();xmlLoader.addEventListener(Event.COMPLETE, showXML);xmlLoader.load(new URLRequest("playlistAS3.xml"));funciton========function showXML(e:Event):void {XML.ignoreWhitespace = true;var songs:XML = new XML(e.target.data);trace(songs.track.length());var i:Number;for (i=0; i < songs.track.length(); i++) {trace(" Name of the song: "+ songs.track[i].title.text());trace("

AS3 | Array
Create Arrayvar myArray:Array = new Array("A", "B", "C");Using element of an Arraytrace(myArray[2]);output is: CAdding element to array1- myArray[3] = "D"; // create element at 3th site of the array2- myArray.push("D"); //create element after the last site of the arrayChanging element of the arraymyArray[3] = "Changed D"(to be contin

Category List
- Actionscript 3 (2)
- Digital Painting (1)
- Life style (1)
- Photoshop (1)
- Sencha Touch (1)
Blog Archive
-
▼
2010
(50)
-
▼
January
(8)
- AS3 Flash | Give result to XML variable
- AS3 Flash | Load External XML with urlLoader
- AS3 Flash | Load External XML with urlLoader
- AS3 Flash | Dispatchevent
- AS3 Flash | Automatically Action using Timer Class
- AS3 Flash | Coding Object have shadow effect
- AS3 | Array
- AS3 Flash | Dynamic Textfield autoSize
-
▼
January
(8)