logo-dw

Go Back   Dreamweaver Club Forums > Graphic Design > Flash
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-12-2006, 11:26 AM   #1
ianlambert
 
Join Date: Jun 2006
Location: England
Posts: 8
Default My smooth scroller wont work damn it

Anybody help Me????

I am trying to produce a smooth action scrolling text panel, I have written the action script for each button as follows...

UP BUTTON-

on (press) {
upint = setInterval(scrup, 100);
}
on (release) {
clearInterval(upint);
}

DOWN BUTTON-
on (press) {
downint = setInterval(scrdown, 100);
}
on (release) {
clearInterval(downint);
}

and FUNCTION script
function scrup() {
txtbox.scroll = txtbox.scroll-1;
}
function scrdown() {
txtbox.scroll = txtbox.scroll+1;
}

But how the heck do I get my buttons to react with the function, I know i'm thick but I am a complete newby can anyone help me please, cheers Ian
ianlambert is offline   Reply With Quote
Old 07-12-2006, 11:32 AM   #2
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

when do you want to fire these functions??

on a button event?
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 07-12-2006, 12:08 PM   #3
ianlambert
 
Join Date: Jun 2006
Location: England
Posts: 8
Default flash scroller

yes david when you press the down button the text should scroll down smoothly and when you press the up hey presto smooth flowing text going up(hopefullY
ianlambert is offline   Reply With Quote
Old 07-12-2006, 03:23 PM   #4
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

Code:
on (press) { 
upint = setInterval(scrup, 100); 

scrup();  // <<

}
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com