Okay i'm tearing my hair out at this point! I can't understand why the file works when I preview it in Firefox. But when I upload it to my site it disappears. Here is the embed code:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','500','height','375','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=http://mysitesname.com/MembersAREA/videovault/video/likes2play&autoPlay=false&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); //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=7,0,0,0" width="500" height="375" id="FLVPlayer">
          <param name="movie" value="http://mysitesname.com/MembersAREA/videovault/video/FLVPlayer_Progressive.swf" />
          <param name="salign" value="lt" />
          <param name="quality" value="high" />
          <param name="scale" value="noscale" />
          <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=http://mysitesname.com/MembersAREA/videovault/video/likes2play&autoPlay=false&autoRewind=true" />
          <embed src="http://mysitesname.com/MembersAREA/videovault/video/FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=http://mysitesname.com/MembersAREA/videovault/video/likes2play&autoPlay=false&autoRewind=true" quality="high" scale="noscale" width="500" height="375" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />          
        </object>
        </noscript>

Can anyone pinpoint something wrong with this code? I'm pretty sure it's something ridiculous, but i'm sooo desperate right now!

Thanks in advance for reading!
Nikki

Recommended Answers

All 6 Replies

You did upload the .swf into the folder specified in the path?

You did upload the .swf into the folder specified in the path?

Yes I did... The coding should be accurate

Questions:

- Are you aware that you have unescaped ampersands in your code? Each "&" must be replaced with the "&amp;" string.

- Did you give the .flv file public read permission?

- Does your host computer allow you to serve .flv downloads? Mine requires a website hosting upgrade, with an extra monthly fee.

- Does your ISP allow you to download .flv files to your computer? Some do not.

- Check your firewall. It might be blocking such a download.

Check that if your Flash files are in the same folder with your web pages on your host server.

HTML embed tag is crap, you should use 'SWFObject'. SWFObject is a JavaScript script used to embed Adobe Flash content onto Web pages. It is also search engine friendly, degrades gracefully, standards-friendly (can be used in valid HTML and XHTML 1.0 documents), and is forward compatible.

You can also use this flash video player maker, which is a quick solution to add videos to web pages. Here is the example - How to add flash videos to website?

Embed is deprecated.

Hope I'm not too late on this one!
One other thing that you may have overlooked which could be making the difference is flash's local playback security settings.

What are your settings for local playback security?

Open up your source .fla and use ctrl + shift + F12 to access your publish settings (or click on "file->publish settings"). In the publish settings dialog, click on the flash tab and look for the "Local playback security" field at the bottom.

If you exported your .swf with it set to "Access Local Files Only", then that could very well be the cause of the problem.

If this is the case, try setting it to "Access network only", re-export your .swf and upload it to the appropriate place in your web-space. (Then try testing your web page again!)

I suspect this is most likely the case as the parameters you're passing to your movie in the html are URLS, so "Access network only" would seem more appropriate!

Other than that, I'm out of ideas.
If my above suggestion doesn't work and you're feeling patient, you could try loading your page (with the original flash file restored) and waiting for a while to see if your flash file is waiting for the whole video to be downloaded before it starts playing...Another possible reason for nothing appearing!

From what I can recall, the different security models were introduced some years ago to prevent flash apps/movies from being able to access network locations and local file-system locations at the same time. So now they can access only one or the other. (you certainly wouldn't want flash apps reading files from your computer and sending information from them to the authors website would you?)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.