i want to scroll my text field with 2 arrows only. I have this scripts:
1.DOWN ARROW:
on scd
member("tekst").scrollbyline(1)
end
on mouseWithin
mdt
end
on mdt
if the mouseDown=TRUE then scd
end
2. UP ARROW
on mouseWithin
mdt
end
on scu
member("tekst").scrollbyline(-1)
end
on mdt
if the mouseDown=TRUE then scu
end
and its working fine. the problem is ,that i have to put this script directly on the cast member, I can't put it as a behavior.
so for each text field i have to put aditional arrows in a movie.
what i want to know is, does anyone know a script that will do the same as this one, but to be put as a behavior, cause it would make it a lot more easier to work
THANK YOU
1.DOWN ARROW:
on scd
member("tekst").scrollbyline(1)
end
on mouseWithin
mdt
end
on mdt
if the mouseDown=TRUE then scd
end
2. UP ARROW
on mouseWithin
mdt
end
on scu
member("tekst").scrollbyline(-1)
end
on mdt
if the mouseDown=TRUE then scu
end
and its working fine. the problem is ,that i have to put this script directly on the cast member, I can't put it as a behavior.
so for each text field i have to put aditional arrows in a movie.
what i want to know is, does anyone know a script that will do the same as this one, but to be put as a behavior, cause it would make it a lot more easier to work
THANK YOU