all groups > flash actionscript > april 2005 >
You're in the

flash actionscript

group:

Actionscript defunkulator required


Actionscript defunkulator required zz99z NO[at]SPAM netscape.net
4/16/2005 9:06:19 PM
flash actionscript:
Please help me! Flash MX 2004 Pro.


I have a text box called "text" as well as an Up button and a Down
button for scrolling the text.
Attached to frame 1 of the timeline (there is only one frame) is:


function scrollF(){
text.scroll++;


}

Attached to the Down button is:


on(press){
scrollI=setInterval(scrollF,50 );


}

So, this works when I press the down button, but what script do I
use
to make the Up button work, and what script should I add to frame 1?
I
just can't figure it out.
Thanks for any help!
Re: Actionscript defunkulator required Travis Newbury
4/18/2005 4:24:48 AM
[quoted text, click to view]

Is there a reason you are not using the text area? All this
functionality (and more) is already built in.

--
Re: Actionscript defunkulator required zz99z NO[at]SPAM netscape.net
4/21/2005 5:12:20 PM
I want to design my own buttons to scroll the text and I don't know the
code to auto scroll. I know how to scroll one line at a time but
that's not good enough.
Thanks.
Re: Actionscript defunkulator required zz99z NO[at]SPAM netscape.net
4/21/2005 5:14:57 PM

[quoted text, click to view]
I need to design my own buttons but I need the script to make them work
for auto scroll/smooth scroll. I can make it scroll one line at a time
but that's not good enough.
Thank you.
Re: Actionscript defunkulator required zz99z NO[at]SPAM netscape.net
4/21/2005 5:25:57 PM

[quoted text, click to view]
I need to design my own buttons but I need the script to make them work
for auto scroll/smooth scroll. I can make it scroll one line at a time
but that's not good enough.
Thank you.
Re: Actionscript defunkulator required Travis Newbury
4/21/2005 9:54:02 PM
[quoted text, click to view]

when you click on the "down button" start either a onEnterFrame or
setInterval that check to see if you are still pressing the mouse button
and you are over the button. If these conditions are met, then scroll
one line. This should simulate what you are looking for.

--
Re: Actionscript defunkulator required zz99z NO[at]SPAM netscape.net
4/21/2005 10:10:55 PM

[quoted text, click to view]

Thank you so much! I will try and make this work. I will let you know
if it does.
AddThis Social Bookmark Button