Hey all,
I followed Lee Brimelow’s tutorial on how to create scrolling thumbnail panel (http://www.gotoandlearn.com/player.php?id=25) and it works just fine. The only thing I can’t get to work is that the thumbnails (buttons) don’t seem to accept any commands. It doesn’t react no matter what I want it to do after onRelease. I tried everything I thought might work but my Flash knowledge is still too crap to solve this out by myself.
The scrolling panel is made up from bunch of separate buttons, here it goes:
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;
}
if(panel._x >= 128) {
panel._x = 128;
}
if(panel._x <= -554) {
panel._x = -554;
}
var xdist = _xmouse - 300;
panel._x += -xdist / 7;
}
Thanks a lot for any hint!