Flash AS2 XML to Array

var xmlDoc:XML = new XML(); System.useCodepage = true; xmlDoc.ignoreWhite = true; xmlDoc.onLoad = function(ok:Boolean) { if (ok) { doMenu(this); } else { trace(“XML did not load”); } }; xmlDoc.load(“myImages.xml”); function doMenu(xml:XML) { var num:Number = xml.firstChild.childNodes.length; pics = new Array(); for (var i = 0; i < num; i++) { pics[i] = xml.firstChild.childNodes[i].attributes.image; } trace(pics); […]

Read More

Preloading External Images in Flash Using the MovieClipLoader Class

Preloading External Images in Flash Using the MovieClipLoader Class The MovieClipLoader class is an ActionScript tool for loading external content such as images and Flash movies into another Flash movie. Other ways for doing this same thing is the Loader Component and the old .loadMovie() method. The MovieClipLoader class is better than those other two […]

Read More