470,594 Members | 1,087 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Problem with Flash Movie not loading in ASP page.

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.descr iption.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.ShockwaveFla sh.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>
Jul 22 '05 #1
3 3634
=?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.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #2
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." wrote:
=?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.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #3
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
MN wrote:
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." wrote:
=?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.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)


--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by cgdev1 | last post: by
5 posts views Thread by althafexcel | last post: by
4 posts views Thread by Tor Inge Rislaa | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.