as mentioned previously...great tutorial. i wanted a vertical scrolling panel (seems simple enough), but for some reason, i cannot get it to work. i have included the code. does anyone have any idea what is wrong? thanks - cricket
panel.onRollOver = panelOver;
function panelOver()
{
this.onEnterFrame = scrollPanel;
delete this.onRollOver; //allows instances within the panel to receive button clips
}
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._y >= 21.3)
{panel._y = 21.3;}
if (panel._y <= -982.7)
{panel._y = -982.7;}
var ydist = _ymouse - 400;
panel._y += -ydist / 7; //speed of panel larger = slower, smaller number = faster
- AHHHHH i forgot some brackets.