• Hey all,

    I’m attempting to put code in a template to load a Flash video outside the loop. The file name itself comes from a custom field in each post.

    I’ve gotten the video to show up, but not the skin.

    Does anyone know what the issue could be???

    <script language="JavaScript" type="text/javascript">
    	AC_FL_RunContent(
    		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
    		'width', '313',
    		'height', '250',
    		'src', '<?php echo get_post_meta($post->ID, 'side-bar-video', true); ?>',
    		'quality', 'high',
    		'pluginspage', 'http://www.adobe.com/go/getflashplayer',
    		'align', 'middle',
    		'play', 'true',
    		'loop', 'true',
    		'scale', 'showall',
    		'wmode', 'window',
    		'devicefont', 'false',
    		'id', '<?php echo get_post_meta($post->ID, 'side-bar-video', true); ?>',
    		'bgcolor', '#000000',
    		'name', '<?php echo get_post_meta($post->ID, 'side-bar-video', true); ?>',
    		'menu', 'true',
    		'allowFullScreen', 'false',
    		'allowScriptAccess','sameDomain',
    		'movie', '<?php echo get_post_meta($post->ID, 'side-bar-video', true); ?>',
    		'salign', ''
    		); //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=10,0,0,0" width="313" height="250" id="<?php echo get_post_meta($post->ID, 'side-bar-video', true); ?>" align="middle">
    	<param name="allowScriptAccess" value="sameDomain" />
    	<param name="allowFullScreen" value="false" />
    	<param name="movie" value="../../media/video<?php echo get_post_meta($post->ID, 'side-bar-video', true); ?>.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />	<embed src="../../media/video<?php echo get_post_meta($post->ID, 'side-bar-video', true); ?>.swf" quality="high" bgcolor="#000000" width="313" height="250" name="<?php echo get_post_meta($post->ID, 'side-bar-video', true); ?>" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
    	</object>
    </noscript>

    Thanks,

    –nks

The topic ‘Adding Flash outside “The Loop”’ is closed to new replies.