Hello!
I have a thumbnail gallery that I’d love it so that when the user clicks on a thumb, it launches an HTML page of a news clipping. I’ve tried altering the code for it to do that, but it doesn’t work and I wasn’t sure how the actionscript could recognize the javascript code for the window size.
My code currently is:
mask_mc._visible = false;
menu_mc.setMask(mask_mc);
portfolioInfo = new XML();
portfolioInfo.ignoreWhite = true;
timeline = this;
portfolioInfo.onLoad = function() {
portfolioTag = this.firstChild;
count = portfolioTag.childNodes.length;
for (i=0; i<count; i++) {
currentPicture = portfolioTag.childNodes*;
currentThumb = menu_mc.createEmptyMovieClip("thumbnail"+i, i);
currentThumb._x = i*40;
image = currentThumb.createEmptyMovieClip("thumbnail_image", 0);
image.loadMovie(currentPicture.attributes.THUMB);
currentThumb.NAME = currentPicture.attributes.NAME;
currentThumb.IMAGE = currentPicture.attributes.IMAGE;
currentThumb.onPress = currentThumb.onDragOver=function () {
_getURL(this.IMAGE,"_blank" );
};
}
};
portfolioInfo.load("portfolio.xml");
My XML file looks like:
<?xml version="1.0" ?>
- <portfolio>
<picture thumb="portfolio_images/thumbs/plug.jpg" image="test.htm" />
</portfolio>
What is wrong with this?? Nothing happens when you select a thumbnail. Can you help? I’ll attach my progress to this post!