Link to home
Start Free TrialLog in
Avatar of bassNsnare
bassNsnare

asked on

FLVPlayback skin problem

I'm trying to display a flash video on a Drupal page.

The video plays fine, but the controls disappear for no apparent reason after only a few seconds. As you can see from the code below, I've turned off skinAutoHide. I've gone as far as to place a copy of my skin .swf in every directory it could possibly be looking for it.

The $img_path variable = "/sites/all/themes/hutchnew"

I know I could use a different player, or even YouTube, but I'd like to make sure there's no 3rd party branding anywhere on the video.

Problem can be seen here: http://67.199.57.93/documents/7700-9700-video
JAVASCRIPT EMBED:
<script type="text/javascript">
	var so = new SWFObject("<?php print $img_path; ?>/flash/videos/Martin_2.swf", "content_flash", "340", "320", "9", "#ffffff");
	so.addVariable("vidFile", "Hutchens.flv");
	so.addVariable("vidPath", "<?php print $img_path; ?>/flash/videos");
	so.addParam("wmode", "window");
	so.write("content_flash");
  </script>

ACTIONSCRIPT:
import mx.video.FLVPlayback;

stop();

//default to the first video if none is specified
if (!vidFile) vidFile='no video selected';


else{

	var moviePlayer:FLVPlayback;

	//now we set what file we want to load.
	moviePlayer.contentPath = vidPath + '/' + vidFile;
	//then we can set a couple other options like these
	moviePlayer.autoPlay = true;
	moviePlayer.autoRewind = false;
	moviePlayer.skin = vidPath + "/SteelExternalAll.swf";
	moviePlayer.skinAutoHide = false;
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Thomas4019
Thomas4019
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bassNsnare
bassNsnare

ASKER

It was purely a flash problem. The .fla we were using was built for Flash Player 8, with AS2. Built a new one with AS3, and the problem disappeared.