A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: How do you do this ?

  1. #1
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399

    How do you do this ?

    http://www.bidet.cl/

    The news blog on the left, how did they make their scroller scroll that fast, and how would you go about creating a custom scroll bar that is fast scrolling like that. I found out that hes using this LoadVars code on the maintimeline and loading that news.txt into that "text_box" MC which holds the dynamic textfield & 2 up & down buttons:

    loadVariables("news.txt","_root.text_box");

    And here's the AS for the buttons below

    "Uparrow" button:

    on (press, keyPress "<Up>")
    {
    up = "1";
    }
    on (release, releaseOutside, rollOut)
    {
    up = "0";
    }

    --------------------------------------

    "Down" button:

    on (press, keyPress "<Down>")
    {
    down = "1";
    }
    on (release, releaseOutside, rollOut)
    {
    down = "0";
    }
    Last edited by TRJNET; 06-10-2004 at 08:53 PM.
    consultant / contractor / designer

  2. #2
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399
    And also the dynamic textfield has a var inside it named "textField", oddly I recreated what he did and it didnt work

    If anyone knows of a good .fla or tutorial of this, please let me know, thnx for the help !

    I also found out that the MC thats being used as a placeholder for everything is named "text_box", it holds the buttons & dynamic textfield has this coding on it:

    onClipEvent (enterFrame)
    {
    if (down == "1")
    {
    this.textField.scroll = this.textField.scroll + 1;
    } // end if
    }
    onClipEvent (enterFrame)
    {
    if (up == "1")
    {
    this.textField.scroll = this.textField.scroll - 1;
    } // end if
    }
    Last edited by TRJNET; 06-10-2004 at 08:58 PM.
    consultant / contractor / designer

  3. #3
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399
    k I tried out but it still oddly didnt work, not sure what Im missing.
    consultant / contractor / designer

  4. #4
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399
    Oh and here's my .fla aswell, its in flash player 7 format for PC.
    Attached Files Attached Files
    consultant / contractor / designer

  5. #5
    Member
    Join Date
    Aug 2003
    Location
    Singapore
    Posts
    48
    I haven't been able to get it work on the loadvariables part, but I've manage to get the scrolling part right.
    Attached Files Attached Files

  6. #6
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399
    hmmm ic ic, thnx for the help !
    consultant / contractor / designer

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