1. Home
  2. Computing & Technology
  3. Animation

ActionScripting Basics: duplicateMovieClip

By , About.com Guide

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

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.