A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: gotoAndPlay is going to And Stopping

  1. #1
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57

    gotoAndPlay is going to And Stopping

    Code:
    on(rollOut){
    	for(k=1; k<=2; k++){
    		_root.treeListenerFront["treeListener"+k].gotoAndStop(thisPlantedTree);
    		_root.treeListenerFront["treeListener"+k]["tree"+treeCount].gotoAndPlay(thisCurrentGrowth);
    	}
    }
    For some reason the second goto is not doing what it's supposed to be doing. It goes to the frame I'm calling, but it doesn't play, it just stops.

    Why is this?

  2. #2
    Member
    Join Date
    Apr 2004
    Location
    IA, USA
    Posts
    57
    Code:
    on(rollOver){
    	_root.treeListenerFront.treeListener1.gotoAndStop(5);
    	_root.treeListenerFront.treeListener1.tree4.gotoAndPlay(2);
    }
    I did some more playing around, and even with something as simple and direct as the above piece of code (nothing else), it still goes to the frame 5 of treeListener1 and stops, and then goes to frame 2 of tree4 and stops, even though it's supposed to play on tree4.

    How can I get around this?

    I tested it out, and the first time I roll over the button it stops, and the second time I roll over it, THEN it plays, but with the functionality I desire, I need it to play the first time through.

    Thanks for your help!

  3. #3
    Member
    Join Date
    Apr 2002
    Posts
    57
    getting the same thing. i've even gone as far as rebuilding an entire movie, with no other code other than the action gotoAndPlay("start");

    the "start" frame is totally clean and yet it freezes the movie clip on the one frame.

    if anyone has any clues as to what causes this bug, PLEASE LET ME KNOW.

  4. #4
    Member
    Join Date
    Apr 2005
    Posts
    72
    I got that problem too! Maybe you should check if on frames you have put stop(); everywhere because even if you want it to play it will never work this way (I think!)
    Also one other thing I saw was that when you use play() or start() or gotoAndPlay(), if you have stoped it before or make it start it on the first frame it some times never go further.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center