[Solved] keep getting error 1009 with gotoAndPlay as3


I guess your MovieClip(parent) is null.

Try this and let me know the output

var mc:MovieClip = MovieClip(parent);
if( mc == null )
    trace( "parent is not a movie clip" );
else
    mc.gotoAndPlay(3);

solved keep getting error 1009 with gotoAndPlay as3