|
-
Help with OnClipEvent r.e. Fonts & Scroller
Please refer to:
www.jmrcreative.com/wmc/construction.html
At issue:
A) I want to be able to hover over the up/down buttons and scroll instead of clicking to scroll
B) I want to use a pixel font (i.e., kroeger) instead of arial
Present effects are achieved via this script:
onClipEvent (load){
daTextBox = "<FONT FACE=\"Arial\" SIZE=\"11\" COLOR=\"#FFFFFF\">TEXT GOES HERE</FONT></P>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
onClipEvent (enterFrame){
if( frameCounter % speedFactor == 0){
if( scrolling == "up" && daTextBox.scroll > 1){
daTextBox.scroll--;
}
else if( scrolling == "down" && daTextBox.scroll < daTextBox.maxscroll){
daTextBox.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}
Much thanks!
Zievfret
[email protected]
-
Random without a cause
I suppose you are setting the value of "scrolling" from the buttons?
In that case, in stead of using code: on(release)
the use of code: on(rollOver)
should do the trick.
If I thought wrong, let me know 
As to that font: been wondering about that myself 
Greetz!
Bart
-
Random without a cause
Btw: kewl graphics mate 
Greetz
-
thanks bartsje, i'll try that change in the script (it was given to me by someone else, so I'm not intimately familiar with it)
As to the font, I know how to use pixel fonts "normally", but how to use it within this structure is another story.
Thanks!
-
then again bartsje, i don't see how your suggestion works
can you enter it into my script above and show me where that's supposed to go?
muchh thanks!
-
okay, i found it.
BUT (heh heh)
here's the script on the (down) button (with your suggested change):
on( rollover ){
scrolling = "down";
frameCounter = speedFactor;
}
on( release, releaseOutside ){
scrolling = 0;
}
That works fine, except it doesn't stop scrolling. When I pull the cursor away from the mouse, it keeps scrolling anyway.
any ideas???
-
Random without a cause
Yup: replacing "(release, releaseOutside)" by (rollOut) should do the trick. Sorry mate, should have mentioned that 
Greetz
Last edited by Bartsje; 07-29-2003 at 08:16 PM.
-
And indeed it did.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|