Hey everyone,
I am new to flash as3, I am trying to figure out how do I remove a child after I add one into a mc.
here is my code:
var two_mc:Two=new Two();
pic_mc.addChild(two_mc);
pic_mc.removeChild(pic_mc.two_mc);
The error that is shows up is:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at test2mc_fla::MainTimeline/frame1()
I cant remove the child if i add a child inside a movieclip, is there something that iam doing wrong ?
Thank you