all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

listbox components



listbox components ^ReNe^
6/28/2004 12:45:59 PM
flash actionscript: anyone know how to edit the listbox component?

the original listbox will scroll upon click, how do i edit the script that
when i rollover hit are, it will actually scroll instead of having on mouse
down?
Re: listbox components Shinchi
6/28/2004 2:13:34 PM
Hi, you can do this, where scr is the name of your listbox

scr.onRollOver = function()
{
scr.vPosition++;
}

alternatively, you can have a code like it

over = false
scr.onRollOver = function()
{
over = true;
}
scr.onRollOut = function()
{
over = false;
}

y = _ymouse;
onMouseMove = function()
{
if(_ymouse > y) scr.vPosition++;
else if (_ymouse < y) scr.vPosition--;
y = _ymouse;


}


In this way, when u roll over ur listbox and you move your move up and down,
the listbox will scroll accordingly

Re: listbox components ^ReNe^
6/28/2004 3:08:57 PM
Re: listbox components Shinchi
7/3/2004 5:03:21 AM
AddThis Social Bookmark Button