i apologize in advance if this has already been answered. i have done about 20 minutes of searching and found nothing.
i have a movieclip (called mistletoeinstance) that i want to duplicate on my stage. however the first frame of this mc is blank, so when it duplicates you can't see it. is it possible to duplicate a mc and have it start on frame 2?
this is the code i'm using:
Code:
on (release) {
//Duplicate Movieclip Behavior
//Requires Flash Player 7 or later
var newdepth = this.mistletoeinstance._parent.getNextHighestDepth();
var newname = "copy" + newdepth;
var prevname = "copy" + (newdepth-1);
if (this.mistletoeinstance._parent[prevname] == undefined) this.mistletoeinstance._parent[prevname] = this.mistletoeinstance;
this.mistletoeinstance.duplicateMovieClip(newname,newdepth);
this.mistletoeinstance._parent[newname]._x = this.mistletoeinstance._parent[prevname]._x + 10;
this.mistletoeinstance._parent[newname]._y = this.mistletoeinstance._parent[prevname]._y + 10;
//End Behavior
}