-
I'm using the scrollbar to trigger a function that controls some mcs.
I found a variable in the scrollbar that lets me know when the bar is being moved:
_level0.scrollbar.isScrolling (is either true or false)
Now I can't find the variable that tells me when either the up or the down button is being pressed?
Any clues out there?
-
got it!
Double-click the scrollbar component in your movie's library, view its actions.
Find this function definition at line 191 in the AS:
Code:
FScrollBarClass.prototype.scrollIt = function (inc, mode)
Before the ending curly brace, insert the following:
Code:
_root.scrolling=true;
Now find this function definition at line 264:
Code:
FScrollBarClass.prototype.stopScrolling = function()
Before the ending curly brace, insert the following;
Code:
_root.scrolling=false;
You will now be able to reference your newly created _root.scrolling variable in your scripts.
There may be a more elegant way, but this works.