View Full Version : duplicate movie clip help
massive3215
June 25th, 2003, 11:25 AM
On the enter frame of my movie I want to take a movie clip in my library and have 3 instances of it move randomly within a small area (~ 50 x 50 pixels). I also want the alpha to change to 0 and back to 100 every couple of seconds. Should I be using duplicateMovieClip or should I use something else? I'm trying to create something similar to how the leaves react on this site (http://www.winnersociety.org). I'm a new actionscripter so if there is an easier way to accomplish this please let me know. Thanks!
Massive3215
zylum
June 25th, 2003, 06:32 PM
if you want to duplicate a library movieclip then you need to use attachMovie...
the code should look something like this:
MovieClip.prototype.theActions = function () {
//put whatever actions you want the movie clip to do here
}
numInstances = 5
for (i=1;i<=numInstances;i++) {
name = "whatEver" + i
_root.attachMovie("theClipsLinkageIdentifierName" , name , i)
_root[name].theActions()
}
soup
June 25th, 2003, 08:32 PM
if you dont use attachMovie, and use duplicateMovieClip will all the duplicates be reacting to events at the same time?
even if it was a different duplicate that was actually actioned.
having an issue with check boxes
posted a thread about it
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=26694
if you just want to the the swf
http://www.route108.com/soup/portfolio/check_box_2.swf
if you dont really care, i understand
soup
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.