Make SWF Auto Play

Discussion in 'General Programming Chat' started by theadultsplayground, Dec 5, 2008.

  1. theadultsplayground

    theadultsplayground BANNED BANNED

    Joined:
    Jan 24, 2008
    Messages:
    1,201
    Likes Received:
    336
    I currently use SwishMax 2.0 to create SWF movies. What I am trying to is have them auto play when someone loads my website page (instead of needing to do a mouse rollover or release, etc).

    Any ideas?
     
  2. hipapatuk

    hipapatuk Newbie

    Joined:
    Feb 15, 2008
    Messages:
    34
    Likes Received:
    4
    Just create a function and call it like:

    function init()
    {
    //what to do
    };
    init();
     
  3. bbyte

    bbyte Registered Member

    Joined:
    Oct 24, 2008
    Messages:
    86
    Likes Received:
    70
    Try changing your code to this:

    Code:
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="700" height="500">
    <PARAM name="PLAY" value="true">
    <EMBED src="file.swf" width="700" height="500" play="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></EMBED>
    </OBJECT>