Hi Coders, Can someone please tell me whats the problem with this code . it's working on fl6 but not fl8 . Thanks
Code: ---------- counter++; // hiding the first dot dot._visible = false; // particle generator // setting of the shape and velocity for each new dot this["dot"+counter].gotoAndStop("shape"); this["dot"+counter].speedx = (random(speed*10)/10)-(random(speed*10)/10); this["dot"+counter].speedy = (random(speed*10)/10)-(random(speed*10)/10); // FX scaling and fading for every dots for (i=counter; i>counter-maxdot; i--) { this["dot"+i]._x = this["dot"+i]._x+this["dot"+i].speedx+Math.cos((counter+i)/frequency)*amplitude+forcex/friction; this["dot"+i]._y = this["dot"+i]._y+this["dot"+i].speedy+Math.sin((counter+i)/frequency)*amplitude+forcey/friction; //friction this["dot"+i].speedx = this["dot"+i].speedx/friction; this["dot"+i].speedy = this["dot"+(i)].speedy/friction; if (fxscale == true) { this["dot"+i]._xscale = (maxdot-(counter-i))*(100/maxdot)*scale; this["dot"+i]._yscale = (maxdot-(counter-i))*(100/maxdot)*scale; } else { this["dot"+i]._xscale = 100*scale; this["dot"+i]._yscale = 100*scale; } if (fxfade == true) { this["dot"+i]._alpha = (maxdot-(counter-i))*(100/maxdot); } else { this["dot"+i]._alpha = 100; } } // removing old dots if (counter>=maxdot) { eleman = counter-maxdot; removeMovieClip(this["dot"+eleman]); } // managing maxdots changes : destroying unused dots maxdotdif = maxdot-maxdot0; if (maxdotdif<0) { for (i=counter-maxdot; i>=counter-maxdot0-1; i--) { removeMovieClip(this["dot"+i]); } } trace("a"); maxdot0 = maxdot; -------- -- Berkay UNAL [EMAIL PROTECTED] _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com