Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Flash in a template

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

Page: 1
Go to End
Author Topic: 925 Views
  • studio6
    Avatar
    Community Member
    14 Posts

    Flash in a template Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Flash in a template Link to this post

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

  • studio6
    Avatar
    Community Member
    14 Posts

    Re: Flash in a template Link to this post

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

  • studio6
    Avatar
    Community Member
    14 Posts

    Re: Flash in a template Link to this post

    .

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Flash in a template Link to this post

    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.

  • studio6
    Avatar
    Community Member
    14 Posts

    Re: Flash in a template Link to this post

    thanks i will have a look at that

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: Flash in a template Link to this post

    Hey guys,

    I did some work on getting flash to work on a site for x-browser support and came across this method. 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

    925 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.