Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't duplicate movie clip from root level

Status
Not open for further replies.

clemrock

Programmer
May 20, 2004
118
US
Good Morning,

I am trying to duplicate a movie clip in a specific movie but I can't seem to get it to duplicate w/out duplicating it on the root level.

For instance, if I duplicate the clip on the _root level it works:

for( var i; i < 10; i++ )
{
duplicateMovieClip( _root.mc_wave_sliver, "sliver" + i, i );
}// Works!!!

But if I try, from the root level, to duplicate the movie clip inside the mc_wave_form movie, it doesn't work:
for( var i; i < 10; i++ )
{
duplicateMovieClip( mc_wave_form.mc_wave_sliv.mc_wave_sliver, "sliver" + i, i );
} // fails

Any Ideas how to make this work?

Thankx,
 
Code:
for( var i; i < 10; i++ ){
duplicateMovieClip("_root.mc_wave_form.mc_wave_sliv.mc_wave_sliver", "sliver" + i, i );
_root.mc_wave_form.mc_wave_sliv.mc_wave_sliver["sliver"+i]._x = 40*i;
}

No linebreaks in the 2 lines within the for loop...
 
Thanks,
Worked like a charm.

Appreciate your time,

clem C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top