Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

FLVPlayback skin problem

Posted on 2010-09-08
2
Medium Priority
?
689 Views
Last Modified: 2012-05-10
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

0
Comment
Question by:bassNsnare
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
Thomas4019 earned 2000 total points
ID: 33631244
I know this can be done VERY easily with SWFTools (http://drupal.org/project/swftools), and FlowPlayer. If you pay the $95 for a commercial flow player license then you can replace the flowplayer logo with your own (or whatever other changes you might want).

Or if you must do it yourself, it doesn't look like you are embeding the SWF in the standard SWFObject way, see http://code.google.com/p/swfobject/wiki/documentation

As far as I can tell, this is really a flash problem and has virtually nothing to do with Drupal.
0
 

Author Comment

by:bassNsnare
ID: 33640330
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.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question