A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Scrolling in a form

  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    68

    [F8] Scrolling in a form

    Hi, so I have a form similar to the one on Kirupa. I can scroll perfectly well on it using a pair of buttons with the following code attached to them:

    on(press){
    form.msg.scroll--;
    }
    and, on the other one:

    on(press){
    form.msg.scroll++;
    }

    Now I made some nice movie clips that I would rather use than the buttons. I attached this code to one:

    on(release){
    _root.form.msg.scroll++;
    }
    and, on the other one:
    on(release){
    _root.form.msg.scroll--;
    }
    however, when the instance behavior for the mc's is set to "movie clip" this code doesn't work. On the first press the form scrolls one line, then the cursor inside the form disappears and no more scrolling occurs.
    Any suggestions?

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Location
    IT
    Posts
    213
    I think it's better if you post your .fla.

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