homepage Welcome to WebmasterWorld Guest from 54.235.227.60
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
flv movie not loading in IE
flv file will not load in internet explorer
Quaddamage




msg:3929205
 2:31 am on Jun 9, 2009 (gmt 0)

Hey everybody,

I wonder if some of the geniuses here can answer this problem :). I cannot, for the life of me get .flv movies to load in IE. Im using dreamweaver CS3 & CS4, neither work in IE. The movies will load in firefox. I have tried IE on 3 different systems from IE 6 to IE 8. In IE7 they are there like ghosts. Right click and they give the same options as any .flv.

Here is the code I'm using, I'm no developer I'm a marketer so please bear with me.
Here is the code I use from DWR CS3:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','440','height','252','id','FLVPlayer2','src', 'FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=traffic_secrets_1&autoPlay=true&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer2','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=8,0,0,0" width="440" height="252" id="FLVPlayer2">
<param name="movie" value="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=Clear_Skin_3&streamName=traffic_secrets_1&autoPlay=true&autoRewind=true" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=traffic_secrets_1&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="440" height="252" name="FLVPlayer2" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />
</object></noscript>
<br />

Would be eternally grateful if someone could tell me what the kink is in IE.

[edited by: eelixduppy at 9:36 pm (utc) on June 11, 2009]
[edit reason] fixed sidescroll [/edit]

 

tangor




msg:3929277
 6:34 am on Jun 9, 2009 (gmt 0)

Have to ask the obvious... does the viewing browser have flash blocked?

Quaddamage




msg:3929783
 6:15 pm on Jun 9, 2009 (gmt 0)

the browser in question is Internet Explorer and of course flash is not blocked. Matter of fact I don't even use IE.

Demaestro




msg:3929836
 7:38 pm on Jun 9, 2009 (gmt 0)

Does the page have a JS function named AC_FL_RunContent?

This is a function created by Adobe to bypass the "click to activate" flash logic in IE. You should have had to upload a .js file with a similar name.

Just make sure that the function is available to the page.

[edited by: Demaestro at 7:39 pm (utc) on June 9, 2009]

Quaddamage




msg:3929880
 8:23 pm on Jun 9, 2009 (gmt 0)

Yes and I replaced with the new js files as adobe instructs but no luck with either.

Quaddamage




msg:3929980
 10:22 pm on Jun 9, 2009 (gmt 0)

I tried showing the videos at full size 700 x 401 and still nothing. What is wring with IE?

rocknbil




msg:3930188
 8:01 am on Jun 10, 2009 (gmt 0)

Have you tried a different method of including the flash?

Isolate the problem in a page by itself using SWFObject.

1. Download SWFObject here [blog.deconcept.com]

2. Unzip it, find swfobject.js. Don't open it or edit it, just put swfobject.js in a directory/folder with FLVPlayer_Progressive.swf.

3. Put the following in test.html, and save it in the same directory.


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- put the previous all on one line -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SWF Test</title>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var myVars = 'MM_ComponentVersion=1&skinName=Clear_Skin_3'+
'&streamName=traffic_secrets_1&autoPlay=true&autoRewind=true';
var myVideo = new SWFObject('FLVPlayer_Progressive.swf', 'myPlayer', '440', '252', '6', '#ffffff');
myVideo.addParam("wmode", "transparent");
myVideo.addVariable("FlashVars", myVars);
window.onload = function() {
if (document.getElementById('video-player')) { myVideo.write('video-player'); }
};
</script>
</head>
<body>
<h1>SWF Test</h1>
<div id="video-player">Video will load here.</div>
</body>
</html>

4. Upload it to the server and test.

This breaks it down to the Flash itself, if it doesn't work one of the dependent files is not being found.

A few notables:


FLVPlayer_Progressive.swf
skinName=Clear_Skin_3

These are names of elements created from sample files/code, correct? If this is a rebuild of one of the sample files it might be helpful to know which one (no URL's)

There are many instances of dependent files with as3, sometimes .js as mentioned but maybe external swf's or class files. Don't know, but I suspect there's some things missing that need to be uploaded.

Quaddamage




msg:3931495
 6:20 pm on Jun 11, 2009 (gmt 0)

thanks for that Bill I'll try it today. I've been uploading everything with dreamweaver. It seems really strange that the best page designer software would have a problem inserting flash movies. Been searching Adobe site and nothing helpful at all.

I think this will put me on the right track to solve this.
thanks again

[edited by: Quaddamage at 6:37 pm (utc) on June 11, 2009]

rocknbil




msg:3931740
 3:29 am on Jun 12, 2009 (gmt 0)

It seems really strange that the best page designer software would have a problem inserting flash movies.

Well, "best" is all relative, those of us that hand code would consider Notepad among the best and Dreamweaver/Front Page/etc. an annoyance. :-)

The problem with Adobe's publish methods are actually legacy issues carried over from as early as Netscape 2.0 days, when it was still called ShockWave. The object element was not well supported by Mozilla for Flash, so we needed embed, which was not supported by IE for Flash. The result was to nest embed inside object . . . which is invalid HTML.

As things progressed (for the worse, IMO) they began automating Javascript to handle various browser issues. The result was a bloated code that worked most of the time, but one little thing is out of place and it falls like a house of cards.

IMO this still exists with AS3, which is very advanced OOP programming. It is really good programming but like many advanced techniques, relies on an understanding of class files and dependencies, all of which must be "included" when uploading a simple .swf. I like to keep it simple: one file, unless I'm dynamically importing data. This frees me up from using library objects, such as the video players, etc., that come packaged with Flash (or can be downloaded and included in a project.)

I'm not placing the entire blame on MM/Adobe developers, if you've ever written a CMS you'd understand the myriad of twists and turns you must take to manage all possible conditions and account for all possible user errors. It's just that when published using a WYSIWYG program, things are bound to go sideways sooner or later.

You can see by the previous example when you understand what's "under the hood" life can be a lot more simple. If you get it to work, you can still work in DW, just open that code window to make alts for your SWF includes . . . and all should be golden.

That is, if my sample works. :-)

Demaestro




msg:3932394
 9:05 pm on Jun 12, 2009 (gmt 0)

bil,

Great insight,

It was very unfortunate that eolas was allowed to affect this even more with a ridiculous patent infringement claim forcing IE to implement "click to activate" flash logic.... thus forcing webmasters to come up with workarounds.

I still have a hate on for Eolas over this, and the fool who continues to uphold it. I also find it telling they have only gone after IE and not other browsers who infringe on the same patent claim.

Going after deep pockets is their only business model for that patent... they should be stripped of it and fined.

Samizdata




msg:3932428
 10:43 pm on Jun 12, 2009 (gmt 0)

I still have a hate on for Eolas over this

Having had to rewrite 1,000 or so pages I understand the sentiment (though I did not take sides in the dispute). The case has been settled, however, and the old OBJECT/EMBED method now works without issues again.

I changed to swfObject at the time and stuck with it. It was more reliable than the solutions offered by Microsoft or Adobe and it validates too.

...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved