0 Replies Latest reply on Sep 11, 2006 5:17 AM by jagguy99

    nested objects

    jagguy99 Level 1
      //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";