hello,

may i ask is there any idea on how to do timer that can countdown in second.
for example :
i want my page to count from 90 seconds until 0 seconds.
This is because i need to display my flash while the timer is counting and when time out it will change to aother flash file.

anyone can help me?
thanks for any help.

    You need javascript if you want it to be visual. Otherwise you can run your flash script, call [man]sleep/man to pause for 90 seconds, then run your next file.

      i don't know why this happen.
      when i run my playflash.php, it doesn't run as i expected.
      for example:
      i want the 1st flash to run and the rest flash sleep
      and when time out the 2nd flash will continue play.
      below is my code:

      <head>
      </head>
      <body>
      <?php
      $swf = file("MyTest.txt"); //read from a file that have a list of flash file name
      $j = count($swf);
      for($i=0; $i<$j; $i++) {
      echo "$swf[$i]";

      //play flash
      $tablecode = <<<EOTABLE
      <EMBED id="$swf[$i]" pluginspage="http://www.macromedia.com/go/flashplayer/" src="$swf[$i]" type="application/x-shockwave-flash" SCALE="SHOWALL" width="1024" height="768" QUALITY="high" LOOP="true" PLAY="true"> </EMBED>
      EOTABLE;
      echo $tablecode;

      echo date('h:i:s') . "\n";
      sleep(15);
      echo date('h:i:s') . "\n";

      }
      ?>
      </body>

      thank you again.

        Write a Reply...