# Continue Timeline After Actionscript Problem

**URL:** <https://forum.kirupa.com/t/continue-timeline-after-actionscript-problem/106629>\
**Category:** Uncategorized\
**Created:** [April 7, 2004, 1:25pm UTC](https://forum.kirupa.com/t/continue-timeline-after-actionscript-problem/106629 "2004-04-07T13:25:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmmcclay](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@rmmcclay](https://forum.kirupa.com/u/rmmcclay)\
**Post date:** [April 7, 2004, 1:25pm UTC](https://forum.kirupa.com/t/continue-timeline-after-actionscript-problem/106629/1 "2004-04-07T13:25:05Z")

</div>

Hi there…

New to ActionScript…but been doing basic timeline  
Flash for some time.

The attached is a very simple study where  
we have a preloader on frames 1 and 2, and then  
an ActionScript on frame 3 (Voetsjoeba’s very  
helpful and cool “gridfade” tutorial on this  
site under ActionScripts).

It works fine but there are two things I can’t  
sort out:

1. How to continue beyond the AS on frame 3?  
If I add a new layer and put something simple  
on it, like a rectangle and let that run across  
15 frames, the AS will run over it. In other  
words the AS isn’t waiting to finish its iterations  
before moving along the timeline.

2. One goal is that I would like to do a series  
(like 10 or so) of photos using the gridfade,  
one after another. But stopping to allow some  
timeline text fade ins and outs (using timeline).

I’ve spent about 4 hours so far, searching and  
reading here; but I’m at a loss.

Appreciate any help that comes along.

Russ  
Taipei  
rmmcclay

---

<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:** [April 8, 2004, 5:01am UTC](https://forum.kirupa.com/t/continue-timeline-after-actionscript-problem/106629/2 "2004-04-08T05:01:58Z")

</div>

I’ll simplify my question and attach a better example.

How to allow the AS on frame 3 to complete its effect before moving along the timeline?

If I remove stop(); from the end of the AS on frame 3 the gridfade effect  
doesn’t complete.

Really would appreciate any help…

Russ  
rmmcclay

---

<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:** [April 8, 2004, 9:44am UTC](https://forum.kirupa.com/t/continue-timeline-after-actionscript-problem/106629/3 "2004-04-08T09:44:44Z")

</div>

i can help for q.1 not for 2 so here goes.

in frame 3…

stop();  
\statements  
gotoAndPlay(4);

hope it helps, im new so i may be wrong.

---

<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:** [April 8, 2004, 10:05am UTC](https://forum.kirupa.com/t/continue-timeline-after-actionscript-problem/106629/4 "2004-04-08T10:05:32Z")

</div>

> [@tofu](#):
>
> i can help for q.1 not for 2 so here goes.
> 
> in frame 3…
> 
> stop();  
> \statements  
> gotoAndPlay(4);
> 
> hope it helps, im new so i may be wrong.

Thanks for the reply, tofu. Appreciate it. However, adding  
“gotoAndPlay(4)” at the end of the AS on frame 3 does not  
solve the problem. I had originally thought that that would be  
all that was needed.

Adding a gotoAndPlay call does the same as removing the stop();  
the AS doesn’t finish, it just moves on to the next frames…

Didn’t think this would be so difficult. (It probably isn’t!)

Russ
