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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting library items without preplacing them?

Status
Not open for further replies.

Leozack

MIS
Oct 25, 2002
867
GB
Hi all - it seems fairly easy to place a library item on your stage then in your code say instancename_mc.duplicateMovieClip("newname_mc",1) or whatever and there you have a copy onscreen. But without leavig the original somewhere offstage how can you do this?

What I mean is - can you not script into place an instance of a library item without having to place one manually first somewhere on your stage you don't want it? :/ It must be obvious but I've missed it ...

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Thanks mate that linkage thing was exactly what I was after it seems. So now I've got my head round the obvious differences of using createEmptyMovieClip (which inserts an empty mc at the coords of the mc you prefix it with?) vs an uplicateMovieClip (which duplicates an instanced symbol) vs attachMovieClip (which duplicates a library item given an instance name but not instanced on stage). Yeah?

_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top