A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: I need autoscrolling text... that can be manually scrolled after clicking scroll bar.

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    3

    I need autoscrolling text... that can be manually scrolled after clicking scroll bar.

    Noob here. I need vertical autoscrolling text inside a box that will stop scrolling after the user clicks on the scroll bar inside the box.

    The box will contain a list of domain names that my client is selling that will scroll down to up. When the end-user wants to scroll themselves they can take control of the scroll bar. I want the text to be white and everything else transparent except the scroll bar.

    Thank-you for any assistance you may be able to offer!

  2. #2
    Jack Foster cabbar's Avatar
    Join Date
    Feb 2007
    Location
    England
    Posts
    111
    search for a "as2: text scroller" in flashkit or google, that wil help to start with.
    Check out my Latest Flash Work Delivered to Very Happy Customers
    http://www.jackfosteronline.com/latest-flash-work.html

  3. #3
    Junior Member
    Join Date
    Jan 2013
    Posts
    3
    Quote Originally Posted by cabbar View Post
    search for a "as2: text scroller" in flashkit or google, that wil help to start with.
    Thank-you! It was a real butt pain!
    I had to use a combination of .scroll and ._y functions.
    Textboxes could only be 5000 pixels high so just ._y by itself was useless for my many links. And .scroll was too choppy in scrolling.

    Only problem now is my if statements have disabled my hyperlinks somehow!

    HERE IS THE FIRST LAYER WITH ACTIONS ON IT:

    var gTNum:Number = getTimer();
    var secNum:Number = 2;
    var draftNum:Number = 0;
    var textNum = -191.95;
    var freeze:Boolean = false;

    this.onEnterFrame = function() {

    if (freeze == false) {
    trace("ran");
    if (getTimer()>=gTNum+secNum*1000 and draftNum >= 5) {
    //trace("getTimer Method Finished "+secNum+" seconds");
    myText.scroll++;
    gTNum = getTimer();
    draftNum = 0;
    myText._y = textNum;
    } else
    draftNum++;
    myText._y = myText._y - 0.29;
    }
    }

    this.onRollOver = function() {
    freeze = true;
    //trace("true");
    };
    this.onRollOut = function() {
    freeze = false;
    //trace("false");
    };

    HERE IS THE SECOND LAYER WITH ACTIONS ON IT:

    myLoadVars = new LoadVars();
    myLoadVars.onLoad = function() {
    myText.htmlText = myLoadVars.myHTMLdata;
    };
    myLoadVars.load("sites.txt");BitmapData

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