A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash Script to Scroll Text

  1. #1
    You Make Me Want To La La
    Join Date
    Apr 2003
    Location
    NY
    Posts
    64

    Flash Script to Scroll Text

    I'm looking for an actionscript where I scroll a limitless amount of text across the window, I want to use it because I recently used a program to find the number Pi 32 million places long and I want to scroll it all in a flash movie.

  2. #2
    You Make Me Want To La La
    Join Date
    Apr 2003
    Location
    NY
    Posts
    64
    nothing?

  3. #3
    FK Enthusiast
    Join Date
    Jul 2003
    Location
    CA
    Posts
    43
    code:

    rightbutton.onPress = function() {
    pressing = true;
    movement = 20;
    };
    rightbutton.onRelease = function() {
    pressing = false;
    };
    leftbutton.onPress = function() {
    pressing = true;
    movement = -20;
    };
    leftbutton.onRelease = function() {
    pressing = false;
    };
    _root.onEnterFrame = function() {
    if (pressing == true) {
    scrollwindow.hscroll = scrollwindow.hsroll+movement;
    }
    }


    To make this script work, u need 2 buttons named leftbutton and rightbutton. u also need a input test field called scrollwindow.

    All this code goes in the first fram of the main timeline

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