1 Reply Latest reply on Jun 28, 2012 9:31 PM by fazstp

    Adding Child to AS3 Flash Sprite in Director 11.5

    fazstp Level 2

      To add a new movie clip to a Flash sprite using ActionScript 2 I do something like this


      new_clip = flash_sprite.createEmptyMovieClip( "my clip", flash_sprite.getNextHighestDepth() )



      Can someone tell the the ActionScript 3 equivalent? I tried this


      new_clip = flash_sprite.newObject( "flash.display.MovieClip" )

      flash_sprite.addChild( new_clip )



      but I get an error saying #addChild handler not found in object.