-
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
-
Really this is me.....
Why use the scrollpane when u could just use a dynamic text field and load an external text file ??
-
Because the text area needs to be larger than the movie dimensions.
-
Really this is me.....
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 ??
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|