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

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

    Default Control _root from movie

    I have a movie symbol of 350 frames ("fish"), I'm trying to put this on the stage and want the timeline on the stage wait for the film "fish" to play all the way through, then continue with the timeline. I know I can make the timeline 350 frames long, but there must be a better solution!

    I have put a stop action on the main stage, then the following at the end of the "fish" movie:

    gotoAndPlay("_root, nextFrame();");

    but it doesn't work, I've tried all sorts of combinations so assume I am asking the wrong questions...

    help help help help help. It seems such a simple thing to try and do.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    This sounds like an ideal situation to use a variable to control the play.

    frame 1....

    Code:
    //create a boolean variable to toggle
    myPlay = false;
    //constantly check the value of the variable
    this.onEnterFrame = function() {
    	trace(_root.myPlay);
    //set if statement to check variable value and control play
    	if (_root.myPlay == true) {
    		_root.nextFrame();
    	} else {
    		_root.gotoAndStop(1);
    	}
    }
    //test code to easily check the variable, change mouseDown to
    //the method you prefer
    _root.onMouseDown = function() {
    //toggle the boolean variable to true
    	_root.myPlay = true;
    }
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  4. #3

    Default thanks

    I think I need to go on a flash course, I tend to use it as a really simple frame by frame annimation tool, with menu's and links, but no real scripting, it just leaves me cold.

    Seeing your response confirms how diffenrently I could be using Flash... but where will I find the time!!!

    Thanks for your help.

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?
    By beh28 in forum Newbies
    Replies: 3
    Last Post: 04-28-2006, 09:12 AM
  2. multiple movie control template
    By scottharrison in forum Flash Scripting
    Replies: 1
    Last Post: 01-28-2006, 05:32 PM
  3. multiple movie control template
    By scottharrison in forum General Flash
    Replies: 0
    Last Post: 01-22-2006, 12:51 PM
  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. control the movie clip using button
    By parthy_ban_m in forum Flash Scripting
    Replies: 1
    Last Post: 10-07-2004, 08:19 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