Your url= here:
Code:
_global.numOfImage = 20;
url = "";
temp = 10;
Needs to be a global variable.
Something like this:
Code:
_global.numOfImage = 20;
_global.domainName = "http://dynamicdrive.com";
temp = 10;
Then when ever you call it and need to add folders or pages or other variables you would do something like:
Code:
on(release){
getURL(_global.domainName+"/forums/", "_blank");
}
(in the case of on a button here)
or to use your script:
Code:
screen.original.loadMovie(_global.domainName + "image/image" + this._name + ".jpg");
just be careful where you put your folder separators. For instance in the variable definition, if you use http://dynamicdrive.com/ then when you add folders in your ActionScript DON'T start the folder name with a / (like /forums/ ) just use "forums/"
Hope it helps
Bookmarks