A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash movie speeds up with each play

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    8

    Flash movie speeds up with each play

    Hello, I am pretty new to flash and only know basics of animating in it and a bit of action scripting. I made a movie and used action script
    Code:
        stop();
    
        var nInterval = setInterval(Play, 1500);
    
        function Play() {
        clearInterval(nInterval);
        gotoAndPlay(_currentframe+1);
        }
    to create pauses in middle of movie to conserve on frames and file size. I used this script for other banners and never had problems. I have several pauses in the movie and the first few pauses work fine but then when the movie loops it ignores the action script and speeds up the play back. What I am doing wrong see the included FLA file.
    http://www.texasweddings.com/saweddi...bride_talk.fla

  2. #2
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Location
    Here, no there
    Posts
    1,813

    Corrected

    It comes from the location of your code and how it is called. I'm making corrections now and will post it when done. Should only take a few minutes.

    Okay, a few minutes have now passed....and here is the corrected source file.
    Last edited by samac1068; 05-21-2009 at 08:56 AM.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

  3. #3
    Junior Member
    Join Date
    Mar 2009
    Posts
    8
    Awesome, thank you so much for your help!

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