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!
if you want to duplicate a library movieclip then you need to use attachMovie…
the code should look something like this:
[AS]
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()
}
[/AS]
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