hi all, i am new to this as3 thing, so a little bit of a newbie question, which is pretty fundamental i think!
so in (the good old days of!!) as2, i was able to do something like this
//create a new mc
var m = createEmptyMovieClip("m",1)
//attach 2 mcs
var mc2 = m.attachMovie("main_movieclip","_mc2",2)
var mc3 = m.attachMovie("main_movieclip","_mc3",3)
so if i wanted to remove mc2 for instance i could just remove it, if i wanted to remove both mc's i could remove the parent movie 'm' and both the attached movie clips would be removed!!
so how do i replicate that, i have this in as3
var m:MovieClip = new MovieClip();
m = new headUp();
m = new h();
if i want to remove ' m.name="b1" ' easy, but if i want to try and remove both and try and remove the parent 'm' movie clip, only the last attached child would remove, in this case ' m.name="b2" '
so how do i remove both children in one go? surely removing the parent is the obvious method? do i have to attach the children at different levels?
I guess i am been stupid, but some advice would go down well here:-)
Thanks in advance Sam