philshields
08-24-2010, 09:47 PM
Hi
I'd like some help setting up a photo gallery....I followed an on-line tutorial for a XML loaded flash gallery, however I want to add some links to the photos, so it will act as a menu for the site, which loads with AJAX. The code I have right now:
[CODE]
myLink = myImages[myNumber].attributes.link;
Image_mc.onRelease = function() {
if (myLink == "somewebpage.htm") {
getURL("javascript:ajaxpage('somewebpage.htm', 'content');loadobjs('Style_sheet.css','Style.css');hideHome()");
}
}
[CODE]
works sort of. The link attaches to empty movie clip 'Image_mc' but the link identifier, 'myLink' won't work within the JavaScript....as a work about I added the " if " clause to apply the right link to the right image, but that makes updating the gallery difficult....does this need some JavaScript code to pass the link attribute into the URL address..??..any ideas what that might be would be appreciated....I'm a newbie at this....Thanks in advance :)
Phil
I'd like some help setting up a photo gallery....I followed an on-line tutorial for a XML loaded flash gallery, however I want to add some links to the photos, so it will act as a menu for the site, which loads with AJAX. The code I have right now:
[CODE]
myLink = myImages[myNumber].attributes.link;
Image_mc.onRelease = function() {
if (myLink == "somewebpage.htm") {
getURL("javascript:ajaxpage('somewebpage.htm', 'content');loadobjs('Style_sheet.css','Style.css');hideHome()");
}
}
[CODE]
works sort of. The link attaches to empty movie clip 'Image_mc' but the link identifier, 'myLink' won't work within the JavaScript....as a work about I added the " if " clause to apply the right link to the right image, but that makes updating the gallery difficult....does this need some JavaScript code to pass the link attribute into the URL address..??..any ideas what that might be would be appreciated....I'm a newbie at this....Thanks in advance :)
Phil