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   956 Views

Avatar
studio6

Community Member, 14 Posts

20 June 2010 at 4:19pm

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

Forum Moderator, 5513 Posts

20 June 2010 at 6:55pm

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

Avatar
studio6

Community Member, 14 Posts

20 June 2010 at 8:12pm

<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

Community Member, 14 Posts

20 June 2010 at 8:17pm

Edited: 20/06/2010 9:14pm

.

Avatar
Willr

Forum Moderator, 5513 Posts

20 June 2010 at 8:41pm

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

Community Member, 14 Posts

20 June 2010 at 9:13pm

thanks i will have a look at that

Avatar
TotalNet

Community Member, 181 Posts

21 June 2010 at 10:17am

Edited: 21/06/2010 10:19am

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