Animation freezes (I think because the script is Flash 6 and my doc is CS3) ???

I have an animation script for particles that was created in Flash 6. I'm trying to recreate it in my flash document that is setup as Flash 8. I couldn't get the animation to play and then I figured out that if I go back to this original Flash 6 document and change it to Flash 8, it won't play in that document either.
I'm really new to Flash and scripting in general. Is there a solution that preferably involves changing the Flash 6 particles effect document so that I can recreate it in my Flash 8 document and have it animate?
I attached the file but here is the script anyway..
This is the script in the timeline:
c=0;
totalParticles = 100;
while (c<totalParticles) {
c++;
duplicateMovieClip("particle0","particle"+c,c);
And this is the script in the movie object:
onClipEvent (enterFrame) {
r++;
yvel+=(yvel2-yvel)/10;
xvel+=(xvel2-xvel)/10;
if (r==quant) {
quant=minVal+random(rnd);
r=0;
yvel2=random((rvel*2)+1)-rvel;
xvel2=random((rvel*2)+1)-rvel;
_x+=xvel;
_y+=yvel;
onClipEvent (load) {
_xscale = _yscale = 10 + random(50);
_x = random(Stage.width);
_y = random(Stage.width);
minVal=25;
rnd=25;
quant=minVal+random(rnd);
rvel = 1;
yvel2=random((rvel*2)+1)-rvel;
xvel2=random((rvel*2)+1)-rvel;
Thanks!

the next two errors are failures to initialize xvel and yvel.  use:
c=0;
totalParticles = 100;
while (c<totalParticles) {
c++;
duplicateMovieClip("particle0","particle"+c,c);
And this is the script in the movie object:
onClipEvent (enterFrame) {
r++;
yvel+=(yvel2-yvel)/10;
xvel+=(xvel2-xvel)/10;
if (r==quant) {
quant=minVal+random(rnd);
r=0;
yvel2=random((rvel*2)+1)-rvel;
xvel2=random((rvel*2)+1)-rvel;
_x+=xvel;
_y+=yvel;
onClipEvent (load) {
r=0;
xvel=0;
yvel=0;
_xscale = _yscale = 10 + random(50);
_x = random(Stage.width);
_y = random(Stage.width);
minVal=25;
rnd=25;
quant=minVal+random(rnd);
rvel = 1;
yvel2=random((rvel*2)+1)-rvel;
xvel2=random((rvel*2)+1)-rvel;
Thanks!

Similar Messages

Maybe you are looking for