A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Scrollbar does not work for XML text in a pop-up box?

  1. #1
    Join Date
    May 2003

    Scrollbar does not work for XML text in a pop-up box?


    I'm having problems with creating a working scrollbar inside a pop-up box that contains XML text. I do have a scrollbar that works outside of the pop-up box, but when I place it inside the box, it does not work. The scrollbar on the outside of the box (that works) I hate and would love to have a scrollbar that when you press the arrows, the text scrolls. Simple, but when I tried using _root to refer to the XML variable of the textbox (title), it did not work. I don't know how to fix it... I need expert advice!!

    Can you take a look at my .fla and see what is wrong here?
    Attached Files Attached Files

  2. #2
    Join Date
    Apr 2001
    Montréal, Québec.
    You cannot use scroll on something else than a textfield, and you're trying to apply it to a movie clip...

    This corrected .fla works, but you'd have to further condition a min and max position, according to your list's length, otherwise the list will just scroll in or out of view...

    onClipEvent (enterFrame) {
    if (scrolling) {
    _level0.player.menuRise.mc.playlist_mc.target_mc._ y +=1;

    onClipEvent (enterFrame) {
    if (scrolling) {
    _level0.player.menuRise.mc.playlist_mc.target_mc._ y -=1;

    Last edited by oldnewbie; 12-02-2004 at 08:57 PM.

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