I have a very tall Flash application that I will be using as part of a Help Desk application .

The document is 1500 pixels tall. There is a little "control panel" on the right hand side of the screen that always needs to stay on screen , no matter how far down you scroll. The scroll panel is 510 pixels tall, and the registration point is toward the top/middle.

I have the code set so that now, if the mouse gets too far away from the panel, the control panel will travel down (or up) to find the mouse y position. But its a little choppy and sometimes you have to move the mouse to the extreme top or bottom of the screen to get it to position itself properly.

code:

_root.multiplier=60;
_root.pccount=103;
_root.dragmode=false;

function movepane(){

panely=_root.controlpanel._y
mousey=_root._ymouse;
if (mousey>panely+400){
_root.controlpanel._y=_root.controlpanel._y+multip lier;
multiplier= multiplier*0.99;

}else if (mousey<panely-100){
_root.controlpanel._y=_root.controlpanel._y-multiplier;
multiplier= multiplier*0.99;
}else{
multiplier=60;
}//end if mousey


}




Here is the link: try it out.


http://www.newmediatech.net/nuSite/helpdesk3.html