Solved

How to have a Flash animation repeat x times and then stop? but just certain layers

Posted on 2009-04-07
2
1,411 Views
Last Modified: 2012-08-13
Hi Guys

I have a flash header and i include a picture slide show, now i would like just to keep rotating the slide show, but when i insert code in the last frame as goandplay(1) is reloading the whole header again, i just want the images keep rotating

how do i do taht

best regards
0
Comment
Question by:titorober23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Expert Comment

by:john_hollings
ID: 24095340
Hi,

In order to help i need a little more information.  where does the picture slide show start as gotoAndPlay(1) will got back to frame 1 of the movie.  Have your keyframed the picture show or is it a nested movieclip? If you can provide your fla it would make it easier to determine what is happening.
0
 
LVL 18

Accepted Solution

by:
Jason Thompson earned 125 total points
ID: 24096262
If I understand you correctly, here's what I use.  In the second to last frame of your slide show movie clip, drop in:

var noOfLoops = 3;  // change '3' to the number of loops you want

if (loop == undefined) {
    loop = 1;
} else {
    loop++;
    if (loop == noOfLoops) {
        stop();
    }
}

In the last frame, drop in:

this.gotoAndPlay(1);

Oh, and take out the gotoAndPlay(1) from last frame of your main timeline and replace it with stop();

I hope this helps.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question