Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Teena 44 posts 64 karma points
    Sep 29, 2010 @ 04:52
    Teena
    0

    swf in template that plays on a page at root level but not on sub

    Greeting,

    I have a swf inserted template that plays fine when rendered on a page at root level but not when rendered from a sub-directory.  All the paths seem relative to the root but I must be missing something somewhere.  standalonenews.swf is in the root and expressInstall.swf is in a subdirectory named scripts.

    Here's the source:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="FlashID" width="280" height="300" align="right" id="FlashID" title="News">
            <param name="movie" value="/standalonenews.swf" />
            <param name="quality" value="high" />

            <param name="wmode" value="transparent" />
            <param name="swfversion" value="6.0.65.0" />
            <!--This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt.-->
            <param name="expressinstall" value="/scripts/expressInstall.swf" />
            <!--Next object tag is for non-IE browsers. So hide it from IE using IECC.-->
            <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="/standalonenews.swf" width="280" height="300">
          <!--<![endif]-->
            <param name="quality" value="high" />

            <param name="wmode" value="transparent" />
            <param name="swfversion" value="6.0.65.0" />
            <param name="expressinstall" value="/scripts/expressInstall.swf" />
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" align="right" /></a></p>
            </div>

            <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
          </object>

    Any suggestions appreciated.

  • Teena 44 posts 64 karma points
    Sep 29, 2010 @ 17:15
    Teena
    0

    More info:

    The flash is actually rendering, right clicking on empty area returns "about flash" message.  The content of the flash is xml driven, since the flash renders but the content does not, perhaps this is the source of the issue.

  • Magnus Eriksson 122 posts 362 karma points
    Sep 29, 2010 @ 18:05
    Magnus Eriksson
    0

    Maybe the Flash is looking for the xml file relative to the web page, i.e. the Flash expects the xml file to be in the same directory as the html document/umbraco page? I've had that problem with a Flash application.

    Regards,
    Magnus

  • Sascha Wolter 615 posts 1101 karma points
    Sep 30, 2010 @ 11:18
    Sascha Wolter
    0

    Hiya,

    there is a 'base' parameter that can be used, for an example see here, some info from Adobe can be found here.

    <param name="base" value="." />

    You can set it obviously to whatever relative path you want, the flash will treat this as its working directory.

    Hope that helps,

    Sascha

  • Teena 44 posts 64 karma points
    Sep 30, 2010 @ 16:39
    Teena
    0

    This worked perfectly!  You rock.

  • Sascha Wolter 615 posts 1101 karma points
    Sep 30, 2010 @ 17:04
    Sascha Wolter
    0

    Awesome :)

  • Denford 132 posts 323 karma points
    Dec 03, 2011 @ 16:19
    Denford
    0

    hi guys having the same kind of problem my flash working on the home page and level 2 pages but not on level 3 pages and i have treid setting the base to the websites directory still not working any help

Please Sign in or register to post replies

Write your reply to:

Draft