jagguy
09-11-2006, 12:33 PM
//can i create nested objects like this at runtime, because this is supposed to be an image inside a scrollpane ? It loads the image on top of the scrollpane with no scrollbars visible.
this.createClassObject(mx.containers.ScrollPane, "sp", this.getNextHighestDepth());
sp.setSize(100, 100);
sp.createEmptyMovieClip("mc7", sp.getNextHighestDepth());
sp.mc7.attachBitmap(bmp2, sp.getNextHighestDepth());
sp.vScrollPolicy = "on";
this.createClassObject(mx.containers.ScrollPane, "sp", this.getNextHighestDepth());
sp.setSize(100, 100);
sp.createEmptyMovieClip("mc7", sp.getNextHighestDepth());
sp.mc7.attachBitmap(bmp2, sp.getNextHighestDepth());
sp.vScrollPolicy = "on";