Log in

View Full Version : Flash Video loading status bar



sandyk3
05-20-2008, 08:13 PM
Hi Everyone,

I'm hoping someone out there can help me. I want to put a message, "Thank you for waiting while the video loads" plus a status bar on my page while my flash video loads. I have looked around and it seems I need to know how to get "into" flash to change settings and I don't know how. Can anyone help me?

Thank you!
Sandy K

Medyman
05-20-2008, 10:46 PM
How are you adding the flash to your page? To have an accurate status bar, yes, you'll need to edit the video player in Flash add some actionscript.

Otherwise, you can use some javascript (http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html) as a workaround and display a "now loading" message.

sandyk3
05-21-2008, 01:42 AM
Hi Medyman

I am adding it in DW add, video flash. It inserted:


function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);

if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
</script>


I think I will have to just go with the loading comment and not the status bar. Could you help me with this? I will be reading the link you sent and I hope I understand it.
The video is on the home page:

www.sandysdesignline.com/genesis/index.html - that one loads fine.
It's when we click to view on www.sandysdesignline.com/genesis/video.html that it takes a long time.. 3 to 4 minutes to load. On my site I have a comment but the comment stays after the load and I don't want that.

Thank you for any help you can give.

Sandy k

Medyman
05-21-2008, 02:34 AM
3 to 4 minutes? Are you on dialup? That loaded right away for me and I'm not on a particularly high-speed connection currently.

In any case, do you have access to the .flv, or preferrably, the .fla that these were created from?

If so, I might be able to help. Otherwise, I'll let one of the javascript gurus around here comment on how to show the loading message (you probably won't be able to get an accurate status bar, as I've said).

Nile
05-21-2008, 02:39 AM
Yes, it also works fine for me.

sandyk3
05-22-2008, 04:02 AM
Okay.. it might be our ISP. We have Cox and that is what it was taking on our MacBooks. Thank you for checking everything out for me. I really do appreciate your time.

No, I don't have the files you asked for, Medyman. Thank you so much for offering your help. I have to say, it's nice to know that if I'm in a bind, and I have done all I can, this board is here.

Thanks again for your time!!!