I was pulling my hair out trying to get the new MX 2004 Scrollpane component to work when I came across a thread on another site, here’s some script as put together by ComicGeek ( a kirupa member) and some guy called whatknows off flashmx2004.com…thought it may help
//sp scrollpane cmp on stage, 'empty' is a empty clip in library
sp.createChild("empty_mc", "spContentHolder", initObject);
contents_holder = sp.spContentHolder;
contents = sp_contents_holder.createEmptyMovieClip("content_mc", 5);
for (var i=0; i<12; i++) {
thumb = contents.attachMovie("thumb_mc", "thumb"+i+"_mc", i, {_y:nextY});
thumb.gotoAndStop((i%2)+1);
trace(i);
nextY = contents._height;
}
Ive played around and it just seems creating the child mc makes all the difference…maybe Senocular or someone could explain it ?
thanks guys :beam: