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

cant get duplicateMovieClip to work?:(

Status
Not open for further replies.

silverswim

Programmer
Oct 17, 2001
50
GB
Hi everyone;
Can someone please see why this code isnt working?There are supposed to be more than one of the mc's following the mouse, but they are not.
Only one e appears when the mouse moves, and then fades off if it stops.
onClipEvent (mouseMove) {

for (i=0;i<=9;i++){
this.duplicateMovieClip(this.snow1,(&quot;snow1&quot;+i),i);

[&quot;snow1&quot;+i]._x=(_root._xmouse)+i;
[&quot;snow1&quot;+i]._y=(_root._ymouse)+i;

}

}
onClipEvent (enterFrame) {
if(this._name == &quot;snow1&quot;) {
_visible=0;
}
else { this._x=_root._xmouse;
this._y=_root._ymouse;
this._alpha -=5;
this._rotation +=2;
this._xscale -=5; this.yscale -=5;

if (this.alpha <=5) {
removeMovieClip(this);
}
}
}
 
Something like this:

Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top