Using code snippets to stop a timeline


show more Using code snippets to stop a timeline provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash Professional CS5 Essential Training show less
please wait ...

Using code snippets to stop a timeline

Since you first started creating animations in Flash, you have probably wondered how to stop the Timeline from looping. To do that, you can use ActionScript code. In this movie, we will look at how to apply that ActionScript using code snippets. So let's take a look at my animation here. So I have a banner ad, the girl riding in on the bike, and then everything zooming out. Once the animation is done, it loops over from the beginning. So let's make this animation stop at end.

So I will close the preview window and go to the last frame with the animation. Now let's open the Code Snippets panel. I will go to Window > Code Snippets. In the Code Snippets panel, I will expand the Timeline Navigation area and then just double click Stop at this Frame. The Actions panel then opens and you will see the comment that explains how the code works, and then the code itself, which is stop, some parenthesis, and a semicolon. That's it. So Flash puts that code on that frame, which is the la...

Using code snippets to stop a timeline
Video duration: 1m 28s 7h 7m Beginner

Viewers:

Using code snippets to stop a timeline provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash Professional CS5 Essential Training

Subject:
Web
Software:
Flash Professional
Author:
please wait ...