PDA

View Full Version : FLV complete function



bigbstanley
February 14th, 2008, 01:24 PM
I'm having a BIG issue with the flash player crashing all browsers when using a streaming FLV and the eventListener of complete. Initially the page loads fine, but as soon as I do a refresh or navigate away from the page, the browser stalls and crashes.

Here is my AS for the eventListener:


import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
videoFadeOut();
slider.play();
};
weddingVid.myVideo.addEventListener("complete", listenerObject);


this is straight off the Adobe doc pages, so I have no ideas why this is happening. Can someone please help, or least let me know that you are having the same issue?

Thanx

bigbstanley
February 14th, 2008, 03:37 PM
I should add, that as soon as I remove this listenerObject, I can refresh/navigate away from the page with no problems.

I'm completely baffled.

bigbstanley
February 15th, 2008, 10:19 AM
Wow, I think I found the answer to this. I guess you can encode a video to crash someone's browser, which is exactly what was happening to me. Once, I simply reencoded my video and changed a few options (I don't know which ones really effected whatever was happening - I just adjusted quality options by like 2 numbers in Sorenson) it fixed my problem and I no longer have crashes.

I found this article stating that it does happen, but there is no explanation on how to fix it.
http://blog.motiwala.com/2007/07/14/flash-video-on-youtube-can-crash-your-computer-demo
(http://blog.motiwala.com/2007/07/14/flash-video-on-youtube-can-crash-your-computer-demo)
Anyone have any ideas on what this was exactly??