1. Home
  2. Computing & Technology
  3. Animation

ActionScripting Basics: duplicateMovieClip

By Adrien-Luc Sanders, About.com

5 of 7

Double-click the script to add it to the stage:

onClipEvent (load) {
duplicateMovieClip (“”, “”, not yet set) ;
}

The key parameters here are Target (specifies the instance name of the clip the script will act on), New Name (names the duplicate clip so it doesn’t overwrite the original), and Depth (tells Flash how to layer the clips atop one another on a single layer, as if they’re at the same depth one will replace the other).

Explore Animation
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. ActionScripting Basics: duplicateMovieClip

©2009 About.com, a part of The New York Times Company.

All rights reserved.