Problems with the scrolling thumbnail panel from the tutorial
by Morraine
on
Jan 9, 2006 at 8:31:14 pm
Hi there.
I'm using the scrolling thumbnail panel from the tutorials on a flash site.
The panel itself works fine, but I cannot get any of the actionscript assigned to the buttons withn the panel to work.
The script attached to the buttons is..
on (release) {
gotoAndStop("FlashSection", 39);
}
Flashsection is the name of the scene and 39 is the frame number.
The actionscript is attached to the buttons themselves within the thumbnail panel movieclip.
I am guessing there is a problem to do with nested symbols, but my actionscript knowledge doesn't go that far and I am at a loss as to what to do to solve this.
Can anyone help?
Re: Problems with the scrolling thumbnail panel from the tutorial by lajoiet on Jan 10, 2006 at 2:18:21 pm
step one I would add a trace command into the on (release) function to see if it is even being called when you click on it. My guess is if you are using buttons ( and I assume you are and have this code in the button itself from the way you have it coded ) you should see the message traced when you click on the button, but since the code is in the button, it may be looking for the scene and frame number in the button movie clip since that's where the code is.
My brain breaks down in these situations and I never know what is correct, but I think you would need to change your button's code to on of the following:
on (release) {
_parent.gotoAndStop("FlashSection", 39);
}
on (release) {
_root.gotoAndStop("FlashSection", 39);
}
or something like that. I'm never sure, and I'm even less sure with the code on the buttons, since I've never coded that way.