dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Control Movie Timing

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    24

    Control Movie Timing

    Hello..

    I need some help.. What I would like to do is stop the movie on a frame lets say frame 10 for 15 seconds and go to the next frame. Can anybody help me do that?

  2. #2
    Learning and growing
    Join Date
    Dec 2005
    Location
    NY
    Posts
    55
    boodaddy, that xml code that you gave me, I am having trouble getting it to let me have more than one column. I tried to edit the first actionscript frame, but it was no use. Can you help me just one more time please?

  3. #3
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Well you could always do it the primitive way of placing a frame further down the timeline, depending on what your fps is at will determine how many frames it'll take for 10-15 secs to go by

    You can also use a timer I suppose. Set a variable :
    myTime = Math.floor(getTimer()/1000);

    myTime will now count the seconds
    Last edited by Osteel; 12-06-2005 at 03:52 PM.

  4. #4
    Junior Member
    Join Date
    Sep 2005
    Posts
    24

    yo

    The best way That worked for me was...

    This on the main timeline



    this.createEmptyMovieClip("timer",50);
    timer.onEnterFrame = function()
    {
    if (this.startTime>0)
    {
    var diff = getTimer()-this.startTime;
    if (diff>this.timerLength)
    {
    this.target.play();
    this.startTime = 0;
    }
    }
    };
    function pauseFor(theTime)
    {
    stop();
    timer.timerLength = theTime;
    timer.startTime = getTimer();
    timer.target = this;
    }



    and then this on the frame you want to timeout

    pauseFor(15000)


    that would timeout for 15 sec

  5. #5
    Junior Member
    Join Date
    Sep 2005
    Posts
    24

    yo

    nitro let me see your page your puting the gallery on.

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