treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Flash Problem

  • I don't know if anyone knows anything about this but I thought I would ask anyway.

    I have a flash file that I am trying to embed in my page. Everything works fine in internet explorer (go figure) but in firefox the user must right click and click play for anything to happen.

    The example can be seen at http://www.jdhdevelopment.com/Game.php

    The embed code that I am using is as follows:

    <object 
    classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"
    codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\"
    width=\"700\"
    height=\"400\"
    id=\"Game\"
    align=\"middle\">
    <param name=\"allowScriptAccess\" value=\"sameDomain\" />
    <param name=\"allowFullScreen\" value=\"false\" />
    <param name=\"movie\" value=\"Game.swf\" />
    <param name=\"loop\" value=\"false\" />
    <param name=\"quality\" value=\"high\" />
    <param name=\"bgcolor\" value=\"#ffffff\" />
    <embed
    src=\"Game.swf\"
    width=\"700\"
    height=\"400\"
    id=\"Game\"
    name=\"Game\"
    AllowScriptAccess=\"sameDomain\"
    allowfullscreen=\"false\"
    type=\"application/x-shockwave-flash\"
    loop=\"false\"
    quality=\"high\"
    bgcolor=\"#ffffff\"
    align=\"middle\"
    pluginspage=\"http://www.macromedia.com/go/getflashplayer\"
    />
    </object>


    if there is anything else that would be helpful let me know.

    Thanks in advance.
  • Try adding the following
    <param name=\"play\" value=\"true\"
  • Thanks for the tip blue642 but sadly it didn't change anything.

    here is the new embed code.

    <object 
    classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"
    codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\"
    width=\"700\"
    height=\"400\"
    id=\"Game\"
    align=\"middle\">
    <param name=\"allowScriptAccess\" value=\"sameDomain\" />
    <param name=\"allowFullScreen\" value=\"false\" />
    <param name=\"movie\" value=\"Game.swf\" />
    <param name=\"loop\" value=\"false\" />
    <param name=\"quality\" value=\"high\" />
    <param name=\"bgcolor\" value=\"#ffffff\" />
    <param name=\"play\" value=\"true\" />
    <embed
    src=\"Game.swf\"
    width=\"700\"
    height=\"400\"
    id=\"Game\"
    name=\"Game\"
    play=\"true\"
    AllowScriptAccess=\"sameDomain\"
    allowfullscreen=\"false\"
    type=\"application/x-shockwave-flash\"
    loop=\"false\"
    quality=\"high\"
    bgcolor=\"#ffffff\"
    align=\"middle\"
    pluginspage=\"http://www.macromedia.com/go/getflashplayer\"
    />


    Thanks for the help.
  • How about

    autoPlay=\"true\"
  • Thanks Toby, but still doesn't work.

    In the following I tried capitalizing the a and the p and also using lower case as well.

    <object 
    classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"
    codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\"
    width=\"700\"
    height=\"400\"
    id=\"Game\"
    align=\"middle\">
    <param name=\"allowScriptAccess\" value=\"sameDomain\" />
    <param name=\"allowFullScreen\" value=\"false\" />
    <param name=\"movie\" value=\"Game.swf\" />
    <param name=\"loop\" value=\"false\" />
    <param name=\"quality\" value=\"high\" />
    <param name=\"bgcolor\" value=\"#ffffff\" />
    <param name=\"play\" value=\"true\" />
    <param name=\"autoPlay\" value=\"true\" />
    <embed
    src=\"Game.swf\"
    width=\"700\"
    height=\"400\"
    id=\"Game\"
    name=\"Game\"
    play=\"true\"
    autoPlay=\"true\"
    AllowScriptAccess=\"sameDomain\"
    allowfullscreen=\"false\"
    type=\"application/x-shockwave-flash\"
    loop=\"false\"
    quality=\"high\"
    bgcolor=\"#ffffff\"
    align=\"middle\"
    pluginspage=\"http://www.macromedia.com/go/getflashplayer\"
    />
    </object>
  • Hey everyone,

    Thanks for trying to help. I realize that this isn't a flash forum and I can't get all my answers here, but css problems and the like are really good here.

    Anyway, I was wondering if anyone knew of any good flash forums where I might go for some more help with this problem.

    Thank you.

    [*EDIT*] I will post the solution to the problem here if/when I get one. [*/EDIT*]