# Next frame after stop

**URL:** https://forum.kirupa.com/t/next-frame-after-stop/59501
**Category:** Uncategorized
**Created:** [August 1, 2004, 11:43am UTC](https://forum.kirupa.com/t/next-frame-after-stop/59501 "2004-08-01T11:43:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anntaj](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@anntaj](https://forum.kirupa.com/u/anntaj)
#### Post date: [August 1, 2004, 11:43am UTC](https://forum.kirupa.com/t/next-frame-after-stop/59501/1 "2004-08-01T11:43:03Z")

</div>

Hi,

How do you get a flash movie to advance on to the next frame after a stop action has been used as in the ray of light text effect? My movie just stops…

Please help, thanks in advance

Ann

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 1, 2004, 12:04pm UTC](https://forum.kirupa.com/t/next-frame-after-stop/59501/2 "2004-08-01T12:04:05Z")

</div>

MovieClip.nextFrame() might be what your looking for. I personally havent looked at the ray of light tutorial so I might be wrong. I have a feeling this could have something to do with a stopped frame with animation done by an onEnterFrame handler.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 1, 2004, 12:48pm UTC](https://forum.kirupa.com/t/next-frame-after-stop/59501/3 "2004-08-01T12:48:14Z")

</div>

> [@bobdoe](#):
>
> MovieClip.nextFrame() might be what your looking for. I personally havent looked at the ray of light tutorial so I might be wrong. I have a feeling this could have something to do with a stopped frame with animation done by an onEnterFrame handler.

thank you, I have tried that…  
this is the script, most things I have tried if they do move onto the next frame do not let the ray of light effect work  
Ann

i = “1”;  
alpha = “0.8”;  
maxlight = “15”;  
while (Number(i)\<=Number(maxlight)) {  
duplicateMovieClip (“ray0”, “ray” add i, 800-i);  
setProperty (“/ray” add i, \_xscale, getProperty(“/ray” add (i-1), \_xscale)+i_alpha);  
setProperty (“/ray” add i, \_yscale, getProperty(“/ray” add (i-1), \_yscale)+i_alpha);  
setProperty (“/ray” add i, \_alpha, 10-i\*(0.5/50));  
i = Number(i)+1;  
}  
setProperty (“ray0”, \_visible, “0”);  
stop();
