Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 4 of 4
  1. #1

    Default Multiple movie control?

    I hope that this question isn't too dumb. I'm still using Flash MX and that could be part of my problem, though I doubt it. I'm trying to make a little movie for a website and I've gone through the bundled lessons and tutorials several times (although I've not bothered with the ActionScript tutorials, and I'm willing to admit that that's probably my problem right there). Anyway, the idea is to have a little slideshow movie running with a separate text movie running concurrently. I'd like one of the movies to loop, while the other one I'd like to run once and then stop. I've done some quick searches within the help files to no avail.

    Would someone be so kind as to suggest what I need to do to get movie symbols to stop after going through them once? Thanks.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default stop movie

    I would love others to weigh in on this but I would try the following.
    At the end of your text movie clip put

    stop();

    in the last frame, probably add a blank keyframe at the end so the movie "invisible".

  4. #3

    Default

    Thanks Jon2211. As soon as I read your post I realized what I had done wrong previously. I had initially added a 'stop();' but like a dimwit I added it to the initial timeline rather than adding it to the movie symbol's timeline. So, when I tried to test the movie it was blank because there was a stop command in the wrong spot.

    This is obviously an appropriate solution if I just want to loop through the movie symbol once, but if I wanted to do it several times I suppose that I would actually need to program some sort of while loop or something like that (if that exists in ActiveScript). Am I right?

    I guess making mistakes is the best way to learn. Thanks again for your advice.

  5. #4
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Numbered loops can be achieved with a count variable and an if statement. Consider the following....

    Main timeline...

    myCount=0;

    Movieclip motion tween(10 frame motion tween moving object across stage). First frame of movieclip...

    _root.myCount++;


    Last frame of movieclip....

    if(_root.myCount<=5){
    this.gotoAndPlay(1);
    }else{
    stop();
    }
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. multiple movie control template
    By scottharrison in forum Flash Scripting
    Replies: 1
    Last Post: 01-28-2006, 05:32 PM
  2. multiple movie control template
    By scottharrison in forum General Flash
    Replies: 0
    Last Post: 01-22-2006, 12:51 PM
  3. Control _root from movie
    By Simon in forum Newbies
    Replies: 2
    Last Post: 04-06-2005, 09:06 AM
  4. Control a movie with multiple movies inside
    By rex009 in forum Flash Scripting
    Replies: 1
    Last Post: 11-25-2004, 01:32 PM
  5. Replies: 1
    Last Post: 08-11-2004, 05:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial