Flash Embed in Header.html

Discussion in 'Templates customization' started by threepounds, Jan 6, 2008.

  1. threepounds

    threepounds New Member

    Joined:
    Sep 6, 2007
    Messages:
    2
    I would like to embed a flash object into the header.html. I got it to work what i would like to do is pass the {$title} tag into the flash object. I got an idea of how to do it but im missing the target!

    Thanks in advance

    Here is the embed code

    <br /><br />
    <div class="centered">
    "<script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','height','180','title','3lbs_header','src','http://www.3pounds.com/amember/art/3lbs_header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmode','transparent','allowfullscreen','false','flashvars','title=<?={$title}?>','movie','http://www.3pounds.com/amember/art/3lbs_header' ); //end AC code
    </script>

    <noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="180" title="3lbs_header">
    <param name="movie" value="http://www.3pounds.com/amember/art/3lbs_header.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="allowFullScreen" value="false" />
    <param name="FlashVars" value="title={$title}" />
    <embed src="http://www.3pounds.com/amember/art/3lbs_header.swf" width="550" height="180" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" allowfullscreen="false" flashvars="title=$title"></embed>
    </object>
    </noscript><h1>{$title}<br />
  2. threepounds

    threepounds New Member

    Joined:
    Sep 6, 2007
    Messages:
    2
    solved it

    I hope this help someone in the future! To embed flash objects with site user var. The page Title in the header.html to show up in a embeded flash swf with the AC_FL_RunContent script.

    {php}echo("<script type='text/javascript'>AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','height','180','title','3lbs_header','src','http://www.3pounds.com/amember/art/3lbs_header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','wmode','transparent','allowfullscreen','false','flashvars','title=");{/php}{$title}{php}echo("','movie','http://www.3pounds.com/amember/art/3lbs_header' );</script>");{/php}
    <noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="180" title="3lbs_header">
    <param name="movie" value="http://www.3pounds.com/amember/art/3lbs_header.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="allowFullScreen" value="false" />
    <param name="FlashVars" value="title={$title}" />
    <embed src="http://www.3pounds.com/amember/art/3lbs_header.swf" width="550" height="180" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" allowfullscreen="false" flashvars="title={$title}"></embed>

    </object>
    </noscript>

Share This Page