Scrollpane
Hej.
Jeg så det her eksempel andetsteds, men har svärt ved at få det til at fungere:
-----
So, you know how to get ONE mc in the pane...giving an mc a linkage name, and putting that name in the pane parameter... What the FScrollPane does is to attache that movie, giving it the instance name of "content_mc" , so the absolut path can be for example _root.myScrollPane.content_mc
This can be good to know if you have a hard time solving it in another way (there are many, it deppends of what you gys have in mind, example: attaching or duplicating mc from within the pane-linked mc). Dont forget to use the myScrollPane.refreshPane(); command after your changes.
like this for example:
_root.myScrollPane.content_mc.createEmptyMovieClip("picHolder",2);
_root.myScrollPane.content_mc.picHolder.loadMovie("apeBrain.jpg");
_root.myScrollPane.content_mc.picHolder.onData=function(){
_root.myScrollPane.refreshPane();
};
_root.myScrollPane.content_mc.createEmptyMovieClip("picHolder2",2);
_root.myScrollPane.content_mc.picHolder2.loadMovie("apeCar.jpg");
_root.myScrollPane.content_mc.picHolder2.onData=function(){
_root.myScrollPane.content_mc.picHolder2._y=
_root.myScrollPane.content_mc.picHolder._y+
_root.myScrollPane.content_mc.picHolder._height;
_root.myScrollPane.refreshPane();
};
-----
Meningen er at man (hårdkodet her) skal kunne sätte jpegs ind i et scrollpane.
Jeg er ikke helt sikker på det der linkage name.
Det er vel under "linkage" på et MC i libray'et, hvor der er et "identifier" felt hvor "content_mc" skal indföres?
Skal det ovennävnte MC ikke väre tilsted på scenen?
Hilsener, Timmer.
