Question

I am trying to embed a flash file onto the homepage of my Ruby application. The homepage is in /app/view/home, and the flash file is in the projects /public/flash/myflash.swf.

When I load the home page, I don't see anything, although the text is bumped below a square of the proper size I defined the file as.

The code I am using to try and load the file is

<div id="flashContent">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="346" height="383" id="Blox" align="middle">
            <param name="movie" value="/flash/Blox.swf" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#ffffff" />
            <param name="play" value="true" />
            <param name="loop" value="false" />
            <param name="wmode" value="window" />
            <param name="scale" value="showall" />
            <param name="menu" value="true" />
            <param name="devicefont" value="false" />
            <param name="salign" value="" />
            <param name="allowScriptAccess" value="sameDomain" />
    </object>
</div>

I am thinking that either I am calling the file wrong by using value=/flash/Blox.swf, or that I am storing my flash file in the wrong place period.

How can I get my flash file to load? Any help is appreciated!

Was it helpful?

Solution

I was able to fix the problem by including and <embed src> tag in the object. Not the best solution, but it worked for what I needed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top