www.webdeveloper.com
Results 1 to 4 of 4

Thread: wait then play swf file help please

  1. #1
    Join Date
    Apr 2010
    Posts
    10

    wait then play swf file help please

    I have a php page its only work is to display a swf file and after a period of time it redirect automatically to another page. The problem is when the php page loads the swf plays slowly.

    What I nead the php file is to wait untill the swf file is fully loaded then play it so it will be played normally in normal speed??

    so please help.

  2. #2
    Join Date
    May 2010
    Posts
    213
    I don't think this is possible in javascript alone. Flash is the only one who can know when it fully loaded the movie and he needs to tell someone. Do you have the source of the swf file? If so, there is a very nice command that checks for fully loaded content which you can use to start playing. And if not, I'd say no solution to this. I'm not 100% sure though.
    i love easter eggs
    (if you got any creative easter eggs, send me a PM)

  3. #3
    Join Date
    Apr 2010
    Posts
    10
    can you tell me please what is that very nice command that checks for fully loaded content which you can use to start playing and here is the content of the swf file.


    <object id="FlashID" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="600">
    <param name="movie" value="flash/ENTRY.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you donít want users to see the prompt. -->
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="flash/ENTRY.swf" width="900" height="600">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>

  4. #4
    Join Date
    May 2010
    Posts
    213
    The HTML code for embedding the flash is not going to help you here. Unless I have completely misunderstood your problem. For what I understood, you want swf to wait until the whole swf itself has been completely loaded by the visitor and only then start playing. For that purpose, you can simply google out an Actionscript preloader. In a nutshell, that works by starting to play the moment that _root.getBytesLoaded(); becomes equal to _root.getBytesTotal();. But since I would suppose you don't know what to do with these two functions right away, I recommend you google for a preloader tutorial and follow the steps.

    If this does not match to the solution you were looking for, try to describe your problem in further detail.
    i love easter eggs
    (if you got any creative easter eggs, send me a PM)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles