A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: video delay on timeline

  1. #1
    Flash Genie letschillout's Avatar
    Join Date
    Feb 2007
    Location
    31.52949, 74.347272
    Posts
    146

    video delay on timeline

    Question:

    37MB video file embed in flash timeline and since we want to show text and hold movie to show different text, i use timer, setinternval and settimeout function

    but it works on 1st option but timeline is not stoping on 2nd funcation
    and it continues?

    any idea how to hold or delay frame in flash when embed movie in it.

    download fla from here

    Actionscript Code:
    stop();
    /*setTimeout(plaza,2000);

    function plaza() {
        gotoAndPlay("plaza");
    }
    */

    var myTimer:Timer = new Timer(5000); // Sets timer for 5 seconds
     
    myTimer.addEventListener(TimerEvent.TIMER, timerNextFrame); // Add the listener
    myTimer.start(); // Starts the timer
     
    function timerNextFrame(e:TimerEvent) {
      gotoAndPlay("plaza");
       // Perform action, such as go to next frame
    }
    Charag - 3D, Flash Games, Animations,
    Website Development & More...


  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Add this line in the timerNextFrame function.
    myTimer.removeEventListener(TimerEvent.TIMER, timerNextFrame);
    - The right of the People to create Flash movies shall not be infringed. -

Tags for this Thread

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