-
1. Re: duplicate 2 attach 1 and mask attached?
kglad Jun 5, 2014 6:55 AM (in response to Ron Colmen)you can create duplicates (using a string for the name) but you can't reparent using as2 with attachMovie or otherwise.
-
2. Re: duplicate 2 attach 1 and mask attached?
Ron Colmen Jun 5, 2014 10:04 AM (in response to kglad)Thanks but I don't need to reparent the duplicate movieclips, I want to be able to duplicate the movieclips within the same original movieclip.
Eg:
Original movieclip is C2. resides in _root.movieC1.movieC2
Duplicates to be created are clip0 and clip1 inside _root.movieC1.movieC2
Any suggestions how I can achieve my requirement?
-
3. Re: duplicate 2 attach 1 and mask attached?
kglad Jun 5, 2014 10:14 AM (in response to Ron Colmen)again, you can't reparent a duplicated movieclip. your duplicate will have a parent that is the timeline that contains the duplicateMovieClip code.
so, you could use code in _root.movieC1.movieC2;
function duplicateC2():MovieClip{
return this.C2.duplicateMovieClip("c2dup",this.getNextHighestDepth());
}
-
4. Re: duplicate 2 attach 1 and mask attached?
Ron Colmen Jun 5, 2014 10:35 AM (in response to kglad)Great as always! thanks.
-
5. Re: duplicate 2 attach 1 and mask attached?
kglad Jun 5, 2014 3:39 PM (in response to Ron Colmen)you're welcome.



