Yes, you could potentially attach a scrollbar to the Loader component, but you are likely better off simply using the ScrollPane and styling it to not show the border.
where "myScrollPane" is the instance name of the scroll pane, and 0xFFFFFF is your background color.
You could go more in depth styling-wise, and skin the rectBorder instance to not have a border at all.
hi, thanks. Yes im using the scrollpane now. but now im having another problem. i can load some pictures and then on another keyframe i cant load pictures.. its weird.. im doing the exact same thing.. they are all in the assets folder.. i think everything its correct.. so.. i really dont understand what's wrong..
My guess is you are re-instantiating the same scrollpane instance.
I have noticed in the past that I need to put my scrollpane on its own layer that spans the entire timeline, without any keyframes (besides frame 1).
If that method won't work for you, then try giving the second pane a different instanceName.
its like this..
im doing a webpage. and i have diferent keyframes with label names and under them i have another layer with the contents keyframes and on those keyframes i have the scrollpanes. im not giving instance names to them. should i do that? because its really weird.. some work and others dont.. the contentpath name is correct.. so.. must be something else.
As I said before, I have in the past had problems with using multiple instances of the scrollpane.
Try doing things this way:
Put the ScrollPane on its own layer that spans the entire timeline.
Give the ScrollPane an instance name.
In each of the labelled frames, use code to set the contentPath property of the pane.
myScrollPane.contentPath = "/path/to/swf/or/jpg";
humm i've done that.. and it worked with some pictures.. and again the other ones arent working.. lol can it be an image problem?
its working now
thank you! i think it were the pictures..
thks a lot!
Glad it worked for you!