A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Need help with the text scroller

  1. #1
    Member
    Join Date
    Oct 2002
    Location
    N/A
    Posts
    82

    Need help with the text scroller

    Hey users Im having problems with my text scroller. Basically what I want to do is when a user holds down on the mouse button, the text will start scrolling. I dont want for the user to just click on the mouse button 3 million times just to get to the bottom of the page.

    You can see an example at this site
    www.robslounge.net/young_G/

    Then click on biography or news


    Here is what i putted for the up button:

    on(press)
    {
    biography_text.scroll=biography_text.scroll-1;
    }


    And here is what I putted for the down button
    on(press)
    {
    biography_text.scroll=biography_text.scroll+1;
    }

  2. #2
    I am not an expert
    Join Date
    Aug 2005
    Posts
    175
    use "rollOver" instead of "press"


    on(rollOver)
    {
    biography_text.scroll=biography_text.scroll-1;
    }

    And here is what I putted for the down button
    on(rollOver)
    {
    biography_text.scroll=biography_text.scroll+1;
    }

  3. #3
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    on(press){
    onEnterFrame = function(){ // make it loop
    biography_text.scroll-=1;
    }
    }

    on(release){
    onEnterFrame = null; // cancel loop
    }

  4. #4
    Member
    Join Date
    Oct 2002
    Location
    N/A
    Posts
    82
    Thanks you guys are the man *handshake*

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