A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: ScrollPane component: help!

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Location
    Central Coast, CA
    Posts
    9

    ScrollPane component: help!

    Hi, I am hoping that someone can help me with this. I am trying to creat a basic scroll pane which will contain text. I have followed these steps so far:

    1. I made the .swf file (sampletext.swf) that will be the content of the scroll pane
    2. In a new movie clip, I dragged the ScrollPane component from the components menu to the stage.
    3. In the scroll pane's properties panel, I named the instance "biotext"
    4. In the parameters tab, I typed "sampletext.swf" in the contentPath field.
    5. In the movie clip's timeline, I selected the 1st frame and typed in this code in the actions panel:

    scrollListener = new Object();
    scrollListener.scroll = function (evt){
    txtPosition.text = biotext.vPosition;
    }
    biotext.addEventListener("scroll", scrollListener);
    completeListener = new Object;
    completeListener.complete = function() {
    trace("sampletext.swf has completed loading.");
    }
    biotext.addEventListener("complete", completeListener);

    That's all I have done. I am not sure what else to do.
    SOS,
    Sabrina

  2. #2
    Really this is me..... mentaleruptions's Avatar
    Join Date
    Apr 2002
    Location
    WV, USA
    Posts
    1,114
    Why use the scrollpane when u could just use a dynamic text field and load an external text file ??

    My Flashkit Submited Movies:
    Guestbook: V.1.0 V.1.2 V.1.3 V.1.4 PHP Mail Form: V.1.0
    My Deviantart page: Link

  3. #3
    Junior Member
    Join Date
    Dec 2004
    Location
    Central Coast, CA
    Posts
    9
    Because the text area needs to be larger than the movie dimensions.

  4. #4
    Really this is me..... mentaleruptions's Avatar
    Join Date
    Apr 2002
    Location
    WV, USA
    Posts
    1,114
    That would make sense then.

    When u create what u mentioned what actually happens ?? does it work or do u get some kind of errors ??

    My Flashkit Submited Movies:
    Guestbook: V.1.0 V.1.2 V.1.3 V.1.4 PHP Mail Form: V.1.0
    My Deviantart page: Link

  5. #5
    Junior Member
    Join Date
    Dec 2004
    Location
    Central Coast, CA
    Posts
    9
    Well, all I get is a blank white box where the scroll pane should be. It works if I make one in a new blank Flash document, but it won't work if I make one in the Flash file that I need it in even if I follow the same steps. It doesn't make sense! Do components need to be made before you even start a movie??
    BTW, I am using Flash MX 2004.

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