Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Flash in a template


Reply

7 Posts   933 Views

Avatar
studio6

20 June 2010 at 4:19pm Community Member, 14 Posts

hay i want to put a flash banner in my template i have made a .ss file with the html and put it in my Includes. i then put the Includes tag on my page.ss file but it just keeps telling me i don't have the flash player or that the movie has not loaded. i cant see why this is and im new to ss is there anyone out there that can help me

Avatar
Willr

20 June 2010 at 6:55pm Forum Moderator, 5511 Posts

Could you please post the code. Then we'll be able to help you a bit more easily :D

Avatar
studio6

20 June 2010 at 8:12pm Community Member, 14 Posts

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="950" height="140" id="Untitled-1" align="middle">
            <param name="movie" value="Untitled-1.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="transparent" />
            <param name="scale" value="showall" />
            <param name="menu" value="true" />

            <param name="devicefont" value="false" />
            <param name="salign" value="" />
            <param name="allowScriptAccess" value="sameDomain" />
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="Untitled-1.swf" width="960" height="150">
               <param name="movie" value="Untitled-1.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="transparent" />
               <param name="scale" value="showall" />
               <param name="menu" value="true" />
               <param name="devicefont" value="false" />
               <param name="salign" value="" />
               <param name="allowScriptAccess" value="sameDomain" />
            <!--<![endif]-->
               <a href="https://www.adobe.com/go/getflash">

                  <img src="https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
               </a>
            <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
         </object>

Avatar
studio6

20 June 2010 at 8:17pm (Last edited: 20 June 2010 9:14pm), Community Member, 14 Posts

.

Avatar
Willr

20 June 2010 at 8:41pm Forum Moderator, 5511 Posts

I think your !IE syntax is incorrect which maybe causing it to fail. Theres a extra > which I don't think should be there. For including flash cross browser I normally prefer to use SWFObject (http://code.google.com/p/swfobject/) which handles the cross browser compatibility.

Avatar
studio6

20 June 2010 at 9:13pm Community Member, 14 Posts

thanks i will have a look at that

Avatar
TotalNet

21 June 2010 at 10:17am (Last edited: 21 June 2010 10:19am), Community Member, 181 Posts

Hey guys,

I did some work on getting flash to work on a site for x-browser support and came across [url=http://www.alistapart.com/articles/flashsatay]this method[/url]. which means the whole thing can be simplified as an this example used on one of my sites:

<object width="400" height="150" type="application/x-shockwave-flash" data="assets/banner/preloader-banner-1.swf">
<param name="movie" value="assets/banner/preloader-banner-1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<img src="assets/banner/banner-still.jpg" title="Your browser does not support Flash objects so here is a picture of a snowboarder instead" alt="New Zealand Snow Board image"/>
</object>

Essentially replace classid with type="application/x-shockwave-flash". It's tested on Firefox, Opera, Safari, Chrome & IE6+ and I think you'll agree it's a lot simpler!

Hope that helps

Rich