I am creating a website that has a scrolling panel of thumbnails, and I'm
trying to make it so that when you click on a thumb, you go to a new window
with a larger version of the image in it.
Everything is working apart from the thumb_12 action. I have treated it the
same as the links at the bottom of the page (they work fine), but this isn't.
Is it because it's in a scrolling panel?
I'm new to all of this, so any help would be great.
Dave
panel.onRollOver = panelOver;
function panelOver(){
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel(){
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax){
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
var xdist = _xmouse - 400;
panel._x += -xdist / 7;
if(panel._x >= 54){
panel._x = 54;
}
if(panel._x <= -921){
panel._x = -921;
}
}
freerange.onRollOver = over;
freerange.onRollOut = out;
freerange.onRelease = go_one;
homenav.onRollOver = over;
homenav.onRollOut = out;
homenav.onRelease = go_two;
contactus.onRollOver = over;
contactus.onRollOut = out;
contactus.onRelease = go_three;
thumb_12.onRelease = twelve;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(8);
}
function go_one() {
getURL("
http://www.theroost.co.nz/free_range.html");
}
function go_two() {
getURL("
http://www.theroost.co.nz/homepage.html");
}
function go_three() {
getURL("
http://www.theroost.co.nz/contact.html");
}
function twelve(){
getURL("http://www.dimentia.co.nz");
}