Problem with Flash Movie not loading in ASP page.

M

MN

Hello all -

I was hoping I could appeal to the gurus out there as I've researched this
issue and can't seem to get this Flash movie to load at all. Below is my
javascript code that I use to detect the browser and then based on the
success of loading the plugin either show the Flash movie (swf file) or show
a jpeg. Any help is appreciated as I have adjusted the syntax of having
nested script tags within each other without any success. I've heard that
there are issues with doing this in an asp page vs. html. Maybe be easier to
paste the below code into a separate window.

<SCRIPT LANGUAGE=JavaScript>
<!--
var plugin = (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"]) ?
navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
plugin =
parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >=
6;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.userAgent.indexOf("Windows 95")>=0 ||
navigator.userAgent.indexOf("Windows 98")>=0 ||
navigator.userAgent.indexOf("Windows NT")>=0)) {
document.write('<SCR'+'IPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('plugin = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
document.write('</SCRIPT> \n');
}
if ( plugin ) {
document.write('<OBJECT
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
document.write('
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ');
document.write(' ID=showClip WIDTH=430 HEIGHT=89>');
document.write(' <PARAM NAME=movie VALUE="BracketChallenge_Header2.swf">
<PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM
NAME=scale VALUE=exactfit> <PARAM NAME=salign VALUE=LT> <PARAM NAME=bgcolor
VALUE="#FFFFFF"> <PARAM NAME=wmode VALUE=transparent> <PARAM
NAME=allowScriptAccess VALUE="sameDomain"> ');
document.write(' <EMBED src="BracketChallenge_Header2.swf" menu=false
quality=high scale=exactfit salign=LT bgcolor="#FFFFFF"
allowScriptAccess="sameDomain"');
document.write(' swLiveConnect=FALSE WIDTH=430 HEIGHT=89');
document.write(' TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write(' </EMBED>');
document.write(' </OBJECT>');
} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0
&& navigator.appVersion.indexOf("2.")>=0)){
document.write('<img src="/graphics/cstv/global/header_alt.jpg" width=430
height=89 border=0 alt="CSTV\'s 2005 Bracket Challenge">');
} //--> </SCRIPT>
 
E

Evertjan.

=?Utf-8?B?TU4=?= wrote on 16 feb 2005 in
microsoft.public.inetserver.asp.general:
I was hoping I could appeal to the gurus out there as I've researched
this issue and can't seem to get this Flash movie to load at all.
Below is my javascript code ....[snip]

That is clientside script and
having nothing to do with serverside ASP scripting,
please go and ask elsewhere.
 
M

MN

Hi Evertjan -

Actually if nobody would have responded, I would have gotten the message.
Just figured that the ASP developers would have incurred this before. Yes,
it is already posted in javascript groups.

MN

Evertjan. said:
=?Utf-8?B?TU4=?= wrote on 16 feb 2005 in
microsoft.public.inetserver.asp.general:
I was hoping I could appeal to the gurus out there as I've researched
this issue and can't seem to get this Flash movie to load at all.
Below is my javascript code ....[snip]

That is clientside script and
having nothing to do with serverside ASP scripting,
please go and ask elsewhere.
 
B

Bob Barrows [MVP]

Please don't multipost. If you must post to multiple newgroups, crosspost so
that all replies to your post can be easily seen, no matter what newsgroup
the reply occurs in.

As to your assertion that you would have "gotten the message", experience
has indicated otherwise. Most newcomers appreciate being given help with
getting answers to their questions more efficiently, even when that help
consist is advice to post to an appropriate newsgroup. How is anyone
supposed to know, based on one post from you, that you had lots of newsgroup
experience, and had deliberately violated nettiquette by both posting an
off-topic question, and multiposting it at the same time? You can't expect
to get prompt answers to your questions if you engage in behavior that is
guaranteed to get you put on the kill lists of the very people whose help
you need.

Bob Barrows

Hi Evertjan -

Actually if nobody would have responded, I would have gotten the
message. Just figured that the ASP developers would have incurred
this before. Yes, it is already posted in javascript groups.

MN

Evertjan. said:
=?Utf-8?B?TU4=?= wrote on 16 feb 2005 in
microsoft.public.inetserver.asp.general:
I was hoping I could appeal to the gurus out there as I've
researched this issue and can't seem to get this Flash movie to
load at all. Below is my javascript code ....[snip]

That is clientside script and
having nothing to do with serverside ASP scripting,
please go and ask elsewhere.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,701
Latest member
XavierQ83

Latest Threads

Top