FORUMS: list search recent posts

What am I doing wrong here?

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tim Flora
What am I doing wrong here?
on Jan 13, 2009 at 7:01:14 pm

Hi, I am relatively new to Flash but I've done a little reading and am trying to do something relatively simple (at least I think). I have an .flv file I created in Flash encoder from a QT movie. I want to put a skin on it in flash, then embed the .swf in my website. so here's what I've done and it is not working. it creates a space in the post were the movie should go but there's no skin, no controls, no movie.

Here's where I am:

Opened flash project, dragged a "FLVPlayback" component to the stage, then under the properties selected the skin and the local directory of the .flv file. I also made the stage match the size of the .flv file (400x300 in this case).

I previewed it and everything looked fine. I then did a File> Export> Export Movie to a folder on the desktop. This created a .swf file (which I had named "fittofill.swf") along with a "ClearOverAll.swf" which I assume are the controls. When I click on the "fittofill.swf" it opens up just fine and I can see the controls, see the movie, etc.

So I then uploaded the three files (2 .swfs and the .flv) to my website FTP under a folder called "flash". I then used the following html coding on my webpage, but it's not working when I preview the posts. Any thoughts on what's happening here?

Return to posts index

Graham Quince
Re: What am I doing wrong here?
on Jan 14, 2009 at 7:36:33 pm

I can't see your code, but at a guess I'd say it's that the html only calls up the swf file from the folder. For that player to call up the skin and flv, you need to create a folder called 'flash' on your hard drive next to fittofill.swf, then drop the ClearOverAll.swf and the flv into that folder and repoint the custom skin & the flv urls to that folder.

The html code comes first, so what may be happening is that the swf is pulled up to the same level as that code, flash then uses that folder level to look for the flv, which of course is stuck in the flash folder. Have you also got the .js code? That needs to be above the flash folder too.

Hope that helps.
Graham - Free FX for amateur films

Return to posts index

Tim Flora
Re: What am I doing wrong here?
on Jan 14, 2009 at 7:56:29 pm

every time I paste the code in the COW message it sees it as .html and tries to embed the file - oh well.

I did a little more testing and was able to get the file to embed when it was hosted on my other web server (a directory with the .flv and .swf). with the EXACT same file structure I was not able to replicate it when changing the paths/domain to the server in question.

the difference that I can see is the working host is Windows (economy plan through GoDaddy) and the other is Linux (free hosting through GoDaddy). i would still think that Linux would understand .flv. In fact in my most recent test I was able to get the skin to come up but the movie would not play on the Linux. would play off the windows, same situation, same movie. still don't get it.

Return to posts index

Tim Flora
I figured it out!
on Jan 16, 2009 at 5:37:00 am

ok, after much research I figured out what was happening and I can now verify that I'm not crazy. The Linux server did not have a MIME file type for .flv/.swf files so it was not seeing them properly. This can be created by making a .htaccess file and placing it in the directory where all the .flv/.swf files reside. it worked right away after doing this. use Notepad and make sure word wrap is turned off. then make sure the file is named .htaccess and is uploaded using ASCII transfer mode. this is the content that needs to go into the file.

AddType video/x-flv .flv
AddType application/x-shockwave-flash .swf
AddType image/x-icon .ico

here are a few related links:

Return to posts index

Tim Flora
Re: I figured it out!
on Jan 27, 2009 at 6:05:09 am

another follow up note...
the new hosting provider I chose, InMotion, had all the MIME file types preloaded on their server. They also had the correct RSS feed generation headers built in.

GoDaddy did not have the .swf MIME header and it was creating an error on the RSS feeds from my wordpress webpage.

so bottom line is, the web host can cause problems even if you are doing everything correct.

Return to posts index

Hrvoje Mesec
Re: I figured it out!
on May 19, 2009 at 8:01:47 pm

Hello, i have the same problem as you, when i try to play my swf video files on the godaddy servers, they won't play, i have tried everything, even putting the .htaccess file like you said but nothing happens. could it be that i made the flv files wrong in flash? they play locally but on server nothing..:(((

Return to posts index

Steve Lawson
Re: I figured it out!
on Mar 28, 2011 at 7:07:26 pm


I'm having a similar problem--with just simply trying to get a .swf embed to show up on a GoDaddy hosted page. Months ago my .swf files were displaying just fine on my GoDaddy hosted web pages, but not any more. The stage box exists, properly sized as stipulated in the HTML, but the animation doesn't appear (not even frame 1). Just a blank area of background color. BTW: I determined that the stage box is there by using Firebug on Firefox.

What's REALLY strange is I have an older .swf file that still displays using the same HTML/PHP file. So, this problem involves files recently published (using the same Flash installment as what published the older .swf file, BTW).

I've tried using the raw HTML file generated by Flash and still no show. Also, in all cases, the Flash content displays just fine on my development server.

Yes, the .swf files are present on the GoDaddy server, and it has nothing to do with the name of the HTML/PHP file, since the same problem occurs when the name of the container file is included in the URL, and I tried adding a .htaccess file, to no avail.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved