Search

Hello, dear all

I created a home page, and I have a static flash template, want to transfomr it to the symphony xslt template. But the flash just does not display … :(

I am wondering if there is any better way to integrate the flash, but below are my current output:

The original worked html page:

<head>
<title>flash template</title>
&lt;script src="home002.js" type="text/javascript">&lt;/script>
</head>
<body style="text-align: center; background: #1D0905; padding: 0; margin: 0">
&lt;script type="text/javascript">
AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','900','height','884','bgcolor','#1D0905','src','main','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','home002' ); //end AC code
&lt;/script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="884" id="home002" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="home002.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#1D0905" /><embed src="home002.swf" quality="high" bgcolor="#1D0905" width="900" height="884" name="home002" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>
</body>

The corresponding xsl file I modified to:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/>

    <xsl:template match="/">
        <head>
        <title>flash template</title>
        &lt;script src="{$workspace}/views/home/home002.js" type="text/javascript">&lt;/script>
        </head>
        <body style="text-align: center; background: #1D0905; padding: 0; margin: 0">
            &lt;script type="text/javascript">
            AC_FL_RunContent( 'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','base', '.','width','900','height','884','bgcolor','#1D0905','src','home002','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','home002' ); //end AC code
            &lt;/script>
            <noscript>
                <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="900" height="884" id="home002" align="middle">
                    <param name="base" value="."></param>
                    <param name="allowScriptAccess" value="sameDomain"></param>
                    <param name="movie" value="home002.swf"></param>
                    <param name="quality" value="high"></param>
                    <param name="bgcolor" value="#1D0905"></param>
                    <embed base="." src="home002.swf" quality="high" bgcolor="#1D0905" width="900" height="884" name="home002" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" ></embed>
                </object>
            </noscript>
        </body>
    </xsl:template>
</xsl:stylesheet>

All the swf,js,xsl files are in the same folder, namely : workspace/views/home

Originally I do not add the base attribute in above xsl file, but also failed after adding …

Any help is appreciated!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details