dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Scrolling pixel fonts on whole integers - help!

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    5

    Scrolling pixel fonts on whole integers - help!

    Hi -

    I would like to know how to scroll a pixel font and have it stop on a whole integer value on a roll out function.

    I keep finding posts that say you SHOULD do this but I can't find a post or tutorial that says specifically how.

    I emailed fontsforflash and they suggested I post an inquiry here, which wasn't very helpful but I'm hoping someone here will be.

    My knowledge of ActionScripting is still fairly beginner so please be as specific as possible.

    My current code for the scroll action (which works fine on antialiased fonts) is:

    on (rollOver) {
    tellTarget ("/upaction") {
    gotoAndPlay ("up");
    }
    }
    on (rollOut) {
    tellTarget ("/upaction") {
    gotoAndStop ("stop");
    }
    }

    The down action is similar:

    on (rollOver) {
    tellTarget ("/scroll") {
    play ();
    }
    }
    on (rollOut) {
    tellTarget ("/scroll") {
    stop ();
    }
    }

    The text itself is a movie clip scrolling behind a mask.

    Also, if anyone has any tips to add to this on easing the stop action for a smooth stop that would be really nice too.

    Thanks in advance!

  2. #2
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    You could create an mc for your text.
    with several keyframes of the text each set on integers.

    then create a controller mc

    controller mc
    frame 1 stop
    frame 2 text.gotoframe.next
    frame 3 gotoframe.previous
    frame 4 text.gotoframe.previous
    frame 5 gotoframe previous

    as the controller controlls the text mc
    then your object would handle the controller

    Next
    On rollover
    controller.gotoframe2
    On rollout
    controller.gotoframe1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center