By thorshammer on
First, here's the development location in question: www.asgardforge.com/web-design/web-design-company/marketing
The red box you see is the border I styled inside the EMBED tag that is used to place the Flash object. Here's the code I used:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="616" height="386" id="pagetheme" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="www.asgardforge.com/web-design/web-design-company/sites/all/themes/af_marketing/images/nonHomevignette2.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src="www.asgardforge.com/web-design/web-design-company/sites/all/themes/af_marketing/images/nonHomevignette2.swf" quality="high" bgcolor="#ffffff" width="616" height="386" wmode="transparent" name="pagetheme" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" style="border:1px solid red" />
</object>
If you right-click anywhere inside the red box, you get the (abbreviated) Flash menu. That menu displays "Movie not loaded... " in gray (Firefox browser). So it seems the code is being used successfully, but it's not finding the actual flash movie. I used an absolute path in the src attribute, and if you copy and paste that into your browser URL you will see the flash object - so the path is good.
Don't know what's missing. Any ideas?
Comments
Problem is I think you missed
Problem is I think you missed http:// in your flash URL.
Please try
Thanks,
Vijay Thummar
YES!
That is right, and it runs now with the http//www... added. Thank you.
The reason I had not included that, is that I'd already done some "homework" here sorting out the referencing conventions that vary in Drupal according to context (different in nodes than in blocks, for example). I received the sterling advice that it's best to stick to
. base_path() .$directory .to drill down to the theme level, and have been doing so successfully. Never was the http prefix needed, until this. Ye gods...But again, thanks. I have since updated that block code to insert the Flash using SWFobject script - absolutely the best way to handle Flash embedding, deals with all the browser issues ongoing - like the I.E.7 "click to activate" hassle tactics from Microsoft. (Such a coincidence that showed up in I.E. when MS was actively marketing Silverlight to developers.) That script also works fine - so long as I use full URL including http.