A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [RESOLVED] MX - AS2 - Please help me tweak my scrolling text box!

  1. #1
    Member
    Join Date
    Feb 2009
    Location
    nomad
    Posts
    61

    resolved [RESOLVED] MX - AS2 - Please help me tweak my scrolling text box!

    I'm adding a CV to a friend's website, and I really need help with the custom scroller I made from a tutorial.

    I'm a newb with Flash, and still getting my feet wet, so any help is greatly appreciated!

    I followed a shoddy tutorial, (lost the link) and I have the navigation I require, but can't figure out how to insert the actual text from the CV.

    Here's the FLA for that file:
    http://www.mediafire.com/?jjidiyziqxm


    ALTERNATELY, I have another scroller that is functional via up/down buttons, (but tediously, only 1 line at a time) and with the up/down keys on the keyboard.

    I would need to:

    -Add a scrollbar
    -Allow for multiple-line scrolling with the up/down btns


    the FLA of my scroll box thus far:
    http://www.mediafire.com/?ztzd1jyntjj


    I have a feeling it would be much easier to just figure out how to add the text to the first FLA I pasted, but I also included the other one I have just in case. I need to have this done on my end ASAP, so any help is sincerely appreciated!!!
    Last edited by fantome; 09-25-2009 at 07:32 AM. Reason: adding another fla

  2. #2
    Member
    Join Date
    Feb 2009
    Location
    nomad
    Posts
    61
    Bump.
    Anyone have some insight on how to add text to my scroller?
    As mentioned in the original post, I am not sure why I cannot add text to the scroller.

    Thanks

  3. #3
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    this is for FINAL_SCROLLCV.fla

    add a blank movieclip to the stage
    add this code to the movieclip (Actions panel to show - Actions:Movie Clip)

    PHP Code:
    onClipEvent(enterFrame){
    if(
    _root.up==true){
    currentScroll _root.scrollableText.scroll;
    if(
    Number(currentScroll)>1){_root.scrollableText.scroll currentScroll-1;}
    }

    if(
    _root.down==true){
    currentScroll _root.scrollableText.scroll;
    if (
    Number(currentScroll)<Number(_root.scrollableText.maxscroll)) {
    _root.scrollableText.scroll Number(currentScroll)+1;
    }
    }

    on the up button -
    PHP Code:
    on (press) {
    _root.up true;
    }

    on(release){
    _root.up false;

    on the down button -
    PHP Code:
    on (press) {
    _root.down true;
    }

    on (release) {
    _root.down false;


  4. #4
    Member
    Join Date
    Feb 2009
    Location
    nomad
    Posts
    61
    At the risk of sounding completely daft, I don't exactly know where to apply the code. I'm still green, and not entirely familiar/comfortable with the hierarchy just yet.

    I took a stab at it, screwed it up and had to revert to my saved version.

    My apologies in advance. You've been nothing but the picture of patience thus far.

  5. #5
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    Flash MX2004 file attached (cannot save to a lower version)
    Attached Files Attached Files

  6. #6
    Member
    Join Date
    Feb 2009
    Location
    nomad
    Posts
    61
    Quote Originally Posted by a_modified_dog View Post
    Flash MX2004 file attached (cannot save to a lower version)
    Wow, you're fantastic! A million thanks!
    I'm now scrambling to find a trial version of MX04 so I can save down to MX.

    ***later edit

    Perhaps someone out there with MX2004 can save the attachment in post #5 down to MX for me??!
    Last edited by fantome; 10-10-2009 at 08:59 AM.

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