The entire script is attached
Hey guys im trying to load some http url from an xml file into an actionscript function..
Its xml gallery i was successfull in loading the pics the description but im stuck at the url....
The XML file is structured this way....
myDesc=" libero sed dapibus aliquet, quam risus luctus lacus, vitae tincidunt dui diam dictum mauris. Morbi tempor, Nunc eleifend sapien ut odio pharetra eu aliquet eros fermentum. Proin et nisi vel risus eleifend pulvinar. "
I need to place the on and offline links into a onclick button fuction in flash.
so i imported the xml data it works fine for the title so i used the same code for the url
here it is...
the next function pulls the url of the current index
var currentWeb:String = allOnlinelink[currentIndex];
var currentCD:String = allOfflinelink[currentIndex];
then i create a url request
var Weblink:URLRequest = new URLRequest(currentWeb);
var Cdlink:URLRequest = new URLRequest(currentCD);
then i attach it to the onclick function
var req:URLRequest = new URLRequest(currentCD);
I got error undefined Property currentCDim confused....help
It's a little congested to read in the file you attached to see if anything is done to deal with this, but I think I'm finding that you declare and assign the currentCD variable in one function, but are trying to access it in another function. It only has scope within the function it's defined in.