| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
2006 Man Of The Year
Join Date: Mar 2007
Posts: 880
|
what is the best practice in duplication movie clips in a for loop? i've always used duplicateMovieClip with eval("mc_name"+i)
do u duplicateMovieClip(), attachmovie, or something else? i saw something like this i think clip[name]._x how is this done? can someone explain what they think is the easiest to create and work with technique to duplicate and modify movie clips in loops. |
|
|
|
|
|
#2 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
most movieclip functions like duplicatemovieclip, atatchMovie createemptymovieclip etc return a refrence to the clip you just created.
ActionScript Code:
the easiest is not the best in this case. what editor do you use for your coding?> |
|
|
|
|
|
|
|
|
#3 |
|
2006 Man Of The Year
Join Date: Mar 2007
Posts: 880
|
Sepy
|
|
|
|
|
|
#4 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
does it have templates. fdt came with a static create function template for movieclips which was good and encapsulated some good principles
|
|
|
|
|
|
#5 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
Best Practice is the new syntax which Hangalot showed. See the Advanced Pathing tutorial which explains how to use it in depth.
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamic Text in Duplicated Movie Clips | globo | Simple Stuff (Newbies) | 1 | 06-27-2007 05:41 AM |
| adding code to duplicated movie clips | shananicole | ActionScript 2.0 | 1 | 12-19-2005 04:48 PM |
| dynamic fading on duplicated movie clips | stebennettsjb | ActionScript 1.0 (and below) | 19 | 01-05-2004 10:14 PM |
| Re-positioning duplicated clips | kiebz | ActionScript 1.0 (and below) | 2 | 09-15-2003 01:03 PM |
| function calls in duplicated movie clips | pauberson | ActionScript 1.0 (and below) | 1 | 02-17-2001 12:53 AM |