Ok, here is what I did.
I have all the animated icons in movie clip (mcCamera, mcGPS, mcMessages, etc.)
XML (I used those well-known URLs for testing only)
Code:
<?xml version="1.0" encoding="utf-8"?>
<links>
<link>http://www.nec.com</link>
<link>http://www.cnn.com</link>
<link>http://www.ibm.com</link>
<link>http://www.xerox.com</link>
<link>http://www.samsungwireless.com</link>
</links>
Actionscript and the links didnt work.
Code:
var xml:XML = new XML()
xml.ignoreWhite = true;
xml.onLoad = function() {
loadLinks();
}
function loadLinks() {
var link:String = xml.firstChild.childNodes[0].childNodes[0]
mcCamera.onRelease = mcGPS.onRelease = mcMessages.onRelease = mcQWERTY.onRelease = mcMPlayer.onRelease = mcWiFi.onRelease = function() {
getURL(link);
}
}
xml.load("config/icons.xml");
Let me know what I did wrong.
Thanks!
Bookmarks