Solved

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

Posted on 2009-04-07
2
1,412 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

688 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