Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Hardcode Flash

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1153 Views
  • Briohny
    Avatar
    Community Member
    199 Posts

    Hardcode Flash Link to this post

    I've hardcoded some flash code into my page.ss file. It works perfectly in IE but not in Firefox. Here is my code:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="252" height="198">
                                   <param name="movie" value="mysite/images/flash/myfile.swf">
                                   <param name="quality" value="high">
                                   <embed src="mysite/images/flash/myfile.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="252" height="198"></embed>
                                   </object>

    The error that is appearing in Firefox is:

    XML Parsing Error: mismatched tag. Expected: </param>.
    Location: http://localhost:3000/santapark/?flush=1
    Line Number 53, Column 15:

    This code works fine just as a regular html page in Firefox so it must be something to do with SS?

    Any ideas how to fix?

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Hardcode Flash Link to this post

    It says this because it's invalid xml, while in IE the page is not served with an xml-prolog (so no real xml, just xhtml).

    Try self-closing the param tags. ( <param ... /> ).

    Or change the doctype in yr template to something without the xml-prolog, disable the content-negotiator in config.php if necessary

    ContentNegotiator::disable();

  • Briohny
    Avatar
    Community Member
    199 Posts

    Re: Hardcode Flash Link to this post

    Thanks Dio5. I removed the xml version and it works fine now. Thank you.

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