473,765 Members | 1,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=JavaSc ript>
<!--
var plugin = (navigator.mime Types &&
navigator.mimeT ypes["applicatio n/x-shockwave-flash"]) ?
navigator.mimeT ypes["applicatio n/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
plugin =
parseInt(plugin .description.su bstring(plugin. description.ind exOf(".")-1)) >=
6;
}
else if (navigator.user Agent && navigator.userA gent.indexOf("M SIE")>=0
&& (navigator.user Agent.indexOf(" Windows 95")>=0 ||
navigator.userA gent.indexOf("W indows 98")>=0 ||
navigator.userA gent.indexOf("W indows NT")>=0)) {
document.write( '<SCR'+'IPT LANGUAGE=VBScri pt\> \n');
document.write( 'on error resume next \n');
document.write( 'plugin = (
IsObject(Create Object("Shockwa veFlash.Shockwa veFlash.6")))\n ');
document.write( '</SCRIPT> \n');
}
if ( plugin ) {
document.write( '<OBJECT
classid="clsid: d27cdb6e-ae6d-11cf-96b8-444553540000"') ;
document.write( '
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" ');
document.write( ' ID=showClip WIDTH=430 HEIGHT=89>');
document.write( ' <PARAM NAME=movie VALUE="BracketC hallenge_Header 2.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=transpare nt> <PARAM
NAME=allowScrip tAccess VALUE="sameDoma in"> ');
document.write( ' <EMBED src="BracketCha llenge_Header2. swf" menu=false
quality=high scale=exactfit salign=LT bgcolor="#FFFFF F"
allowScriptAcce ss="sameDomain" ');
document.write( ' swLiveConnect=F ALSE WIDTH=430 HEIGHT=89');
document.write( ' TYPE="applicati on/x-shockwave-flash"
PLUGINSPAGE="ht tp://www.macromedia. com/shockwave/download/index.cgi?P1_Pr od_Version=Shoc kwaveFlash">');
document.write( ' </EMBED>');
document.write( ' </OBJECT>');
} else if (!(navigator.ap pName && navigator.appNa me.indexOf("Net scape")>=0
&& navigator.appVe rsion.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 3771
=?Utf-8?B?TU4=?= wrote on 16 feb 2005 in
microsoft.publi c.inetserver.as p.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.publi c.inetserver.as p.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.publi c.inetserver.as p.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
12699
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes state, the HTML page URL would change from default.html to default.html#stateA. example: http://pearstudios.com/javascript/locationHashAndFlash.html This has worked perfectly within HTML and javascript alone, however, when connecting Flash and...
2
5595
by: cgdev1 | last post by:
Hi Folks, I'm somewhat a newbie to .Net (2.0) and even newer to Flash. I'm trying to incorporate a flash (.swf) file into my application. The code* below works in a .htm page (added to my project by using 'add new item' and pasting the code in it). However, the same code does not work in an .aspx page (the page does not throw any errors, but nothing happens aside from a border and a tool tip that says to click to activate). I also...
2
4695
chunk1978
by: chunk1978 | last post by:
hi everyone, this is also posted in the apache forum... i'm not sure if it's a flash issue or an apache issue so i'm posting twice. i'm using apache 1.3 on Mac OS X and i'm trying to enable apache to work with flash. the mime types are set in the httpd.conf file like this: # # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. #
5
3696
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually for repeated html im using the external js, i mean the TOP, BOTTOM they are repeated in every page, so i include them as functions in the external js and call them. Why it doesn't work?
4
1398
by: Tor Inge Rislaa | last post by:
I would like to load a flash file dynamicaly into my web page by using VB code. Is it possible to write a VB code to achieve the same as the HTML code below. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width="300" height="1" id="FlashTest" style="text-align: right">
3
2018
by: vinceboy | last post by:
Hi..guys.I am newbie here and have a page which need to load two different flash element with session control.However something went wrong in the code and cause the first if clause is not working.I try to echo out what I want before the if clause but it displayed nothing. Thanks for your generious help.. <?php echo $_SESSION; if (isset($_SESSION)){ ?> <tr> <td colspan="2"> <div align="center">
7
3706
nathj
by: nathj | last post by:
Hi, I'm stuck. Obviously I'm stuck or I wouldn't be posting a new question. I have a php script that takes information from a database and outputs it to the screen. The information in questions relates to a SWF file that I wish to use to display the members of the network team in our organisation. $lcDisplay .= '<div id="peopleContent">' ; $lcSelectTeam = "SELECT
2
8088
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.