Results 1 to 2 of 2

Thread: Flash widget fails inside Typolight

  1. #1
    New user
    Join Date
    02-17-10.
    Posts
    12

    Default Flash widget fails inside Typolight

    I have purchased a flash widget

    It works fine when I run it outside TypoLight , ie. double clicking a .htm page containing:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
    var flashvars = {};
    flashvars.xml_path = "xml/starburst.xml";
    flashvars.css_path = "xml/styles.css";
    var params = {};
    var attributes = {};
    swfobject.embedSWF("starburst_externalxml.swf", "sb", "590", "300", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
    </script>
    </head>
    <body>
    <div id="sb">

    </div>
    </body>
    </html>

    But when I integrate the code into an article, like so:

    <script type="text/javascript">
    var flashvars = {};
    flashvars.xml_path = "starburst/xml/starburst.xml";
    flashvars.css_path = "starburst/xml/styles.css";
    var params = {};
    var attributes = {};
    swfobject.embedSWF("starburst/starburst_externalxml.swf", "sb", "590", "300", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
    </script>
    <div id="sb">
    [nbsp]
    </div>

    I just get a black stage

    Thoughts?

  2. #2
    New user
    Join Date
    02-17-10.
    Posts
    12

    Default Re: Flash widget fails inside Typolight

    Scracth this ... it was down to file/folder path requirements of the Flash widget ... ok now but everyone assumes they're running from the root of the site :D

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •