Groups | Blog | Home
all groups > flash (macromedia) > september 2005 >

flash (macromedia) : dynamic scrolling


yertari
9/3/2005 10:00:00 PM
Hi,

Could someone please help here...

I have two buttons on a scrolling masked area

One will make the area scroll up, the other down... but i notice that even
when i use onRollOver, the user has to keep moving in and out of the area, to
make it scroll..

How do set it up, so when the icon is rolled over, the area dynamically
scrolls up or down, until the mouse is moved away??

I would be so grateful if anyone could help here

Thanks

Steve
NSurveyor
9/3/2005 10:03:50 PM
Your scroll code is only called when you roll over just how you wrote it. If
you want it to be continuous, put it in a loop, like onEnterFrame.
Suppose your onRollOver looks like this:

myButton.onRollOver = function(){
//scroll code
}

change it to:

myButton.onRollOver = functino(){
onEnterFrame = function(){
//scroll code
}
}
myButton.onRollOut = function(){
delete onEnterFrame;
}
AddThis Social Bookmark Button