FLASH detection code chaos
I applied the massive code from my swf html into the index
page - but now I get TWO top banners and it also doesn't play the
alternate 'img src=indexalternate.jpg' when tested on a PC that
doesn't have Flash player 8 installed.
So my question is - which code do I remove (from what to
what) so the banner will appear once, not twice and why won't the
alternate content work? (tested on IE on a PC laptop which doesn't
have FLASH 8 player). Do I need to place the alternate content also
elsewhere? Have I placed the Flash detection javascript in the
wrong places?
http://www.enhancedwireless.net/index.html
Thanks much
KB
I dont know why people like you help people like us.
But, thank God for you -- youre one of the good guys.
here it is:
http://rccm.org/indexNEW27.shtml
It does work a little different than I hoped.
With the proper v. of Flash it works perfectly, w/o flash, it
says "click here to be re-routed"
Is there anyway to load:
http://rccm.org/assets/2007/global-alternative/xALT.html
automatically in the place of the swf, if there the user
doesnt have flash installed?
If not, I'll leave it as is. Great progress- I'm thrilled
thanks again,
Steven Galvano
Similar Messages
-
Help Editing code from a published html file with flash detection enabled from flash
hi guys ive publish a html file with flash detection enabled from flash
heres the code from the publish html:
<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>main</title>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script language="javascript"> DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 45;
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
'width', '800',
'height', '600',
'src', 'main',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'main',
'bgcolor', '#ffffff',
'name', 'main',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'main',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Adobe Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
</noscript>
</body>
</html>
now since the default codes places my flash movie on upper left corner, ive made my own tables with the flash on it, how or where do i place this code to the upper codes?
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th valign="middle" scope="col"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="600" bgcolor="#333333" scope="col"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','800','height','600','src','main','quality','high','pluginspage','http://www.adobe.com /shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','main' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="600">
<param name="movie" value="main.swf">
<param name="quality" value="high">
<embed src="main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="600"></embed>
</object></noscript></th>
</tr>
</table></th>
</tr>
<tr>
<td height="30" bgcolor="#990000"><table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="col"><div align="left" class="style1">Copyright 2009 St. Paul of the Cross Parish. All Rights reserved.</div></th>
<th width="400" scope="col"><div align="right" class="style1">Usage outside our permissions guidelines requires our prior written consent.</div></th>
</tr>
</table></th>
</tr>
</table></td>
</tr>
</table>
Tnx in advance!Hi
Can you tell me which version of dreamweaver you are using (and flash pro, if you have it), as the code you provided has element of a number of different versions (e.g. your js flash files are reasonably new, but your flash inserted into the html body is old, but with the cs3 version of flash player indicated!). Also the detect flash file is no longer required.
PZ -
I've got a problem with the javascript which should detect
the flash plugin version, if it is deactivated or if there is a
flash plugin installed. I deactivated Flash in my browser. Now I
want my page to tell me that I have to activate the flash plugin.
If I try it locally on my pc everything works fine. If I try to
upload it on our server it don't work. and my page shows a broken
image and seem to find a flash version. Our server is a linux
mashine. Does anybody know something about this problem? Might be a
problem to receive the data via HTTP?123akru wrote:
> Hello Paul,
>
> i tried to get some help from there. That doesn't work
unfortunately.
> Nobody answered my questions :-( I don't think that it
is a HTML problem
> because everything works fine locally. Mitght be a
problem, that
> informations about the flash plugin are transferred via
the HTTP Header.
> Do you have any experiences with it ?
>
> Thanks for your help.
> Greetings!
HI! below is part of the swfobject code that is located in
the HTML page.
The first part in between the divs is displayed if the user
does not have
Flash plugin installed.
The next part has the movie to be played with the version
that is needed for
it to be played. in this case its version 8.0.22
This also works with the so.setAttribute("redirectUrl", IF
Flash is
detected but is lower than 8.0.22 then goto ExpressInstall
BUT IF the users
version is less than is needed for ExpressInstall to work
THEN "redirectUrl"
is used to redirect the user to another html page.
In that case it would be
"Errors_warnings/flash_not_detected.asp".
If you go back to geoff page and scroll down a bit you will
find that he
does has some examples of flash detect, flash verison, flash
expressInstall
( which will upgrade the users flash plugin automaticly). and
has a full
tutorial.
Usually people do reply as I am now, you must of hit slow
week.
Paul
<div id="flashcontent">
Error! You do not have a flash plugin.<BR><a
href="Errors_warnings/flash_not_detected.asp">Click here
to get
plugin.</a></div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("my_flash_movie.swf", "fotester",
"593", "150",
"8.0.22", "#FFFFFF");
so.addVariable("flashVarText", "this is passed in via
FlashVars");
so.setAttribute("redirectUrl",
"Errors_warnings/flash_not_detected.asp");
so.useExpressInstall('goto_expressinstall.swf');
so.addParam("wmode", "transparent");
so.write("flashcontent");
// ]]>
</script> -
Help installing flash detection express
I need some help installing the flash express detection
script.
Can anyone advise me on this?
1) This tutorial assumes that you have already added the
Flash 8 detection scripts to a web page (as explained in the
synopsis
of the implementation process) and have already downloaded the
Flash Player Detection Kit:
a) After you've exported HTML with Flash detection from Flash
8, move the JavaScript code found within the template's
<head> tag to the same location in your page along with the
JavaScript include, AC_OETags.js.
What exactly is it there asking me to do here?
Export what html with flash detection?
Are they talking about when I insert the swf movie file?
Not sure what there saying!
Can you advise?
KevinI have several times tried to install adobe flash player (which I'l call ADF for short) and follow each step carefully, to the last step (apparently) stating that ADF is installed,but then I get an email from one source or another asking me to install ADF. I have gone through this routine a number if times, and have a bunch of "Install ADF" signs scatted all over my desktop (I have an iMac).
Most recently, I have received a message that, in order to install ADF, I need to uninstall all previous ADF's BEFORE I download and install an ADF, so I download the uninstall App, thinking I will get some instuction, with that download in uninstalling the ADF residuals on my desktop
Instead, what I get is a potful of UNINSTALL ADF units (which I don't know what to do with, littering my desktop.
HELP!
Gary Fry, Adobe ID 204233534 -
I am trying to include some script for flash detection on my
site to ensure that my viewers have the right flash player. Does
the Flash Detection Kit also include detection for ActiveX? The
reason I ask is because I have a page that some of my viewer have
trouble seeing and one discovered that she could see the page after
her flash player AND ActiveX were updated. I am not sure whether my
viewers problem is an old flash player or old ActiveX, but I need
to make sure both are up to date first.
If the Flash Detection Kit does not detect ActiveX does
anyone know where I can find code to do that?
Thanks,
SharonI use swfObject for Flash detection. It's easier to control
than the Adobe solution and allows you to provide plain html
alternate content:
http://blog.deconcept.com/swfobject/ -
Flash detection kit - How ?
Can i anyone give me the code to get the flash detection kit
to work, i just dont get itJosBVG,
> Can i anyone give me the code to get the flash detection
> kit to work, i just dont get it
Unless there's a reason you need to use that particular
solution, I
recommend SWFObject. It's free, it's in wide use, and its
Google Code
website includes an AIR app that writes all the code for you.
You just fill
in a form of the SWF's name, width and height, etc., and the
thing generates
all the JavaScript code you need. Just copy and paste into
your HTML page.
http://code.google.com/p/swfobject/
There's also really good documentation here:
http://code.google.com/p/swfobject/wiki/documentation
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
Hi,
I ve created a site www.theimperial.in
The problem im facing is that the end users machine should be
updated with the latest flash player. secondly i got this
fullscreen window pop up code from some site which doesnt function
properly. Can anyone please help me out on the scripting part. I
have downloaded the flash detection script from adobe. but am
unable to integrate that into my site as i have very little
knowlegde bout scripting. Thanks in advance.Hi,
You need;
http://blog.deconcept.com/swfobject/
You'll never look back!
Kind Regards,
Boxing Boom -
Hi there,
What's the best way to add a flash detect to a html page.
I have a html page with a flash element in a DIV. (but without prober flash detect).
Now i'm confused about the generated code after publishing my flash file.
What part of code should I put in my html file, or is it possible to link to a 'universal js file'?
I published for flash player 9 from flash 10.0.
Thnx.
PascalThanks for your answer but there's a lot off code. (See attached)
Should this all be placed in a div?
And isn't it possible to place this in a seperate file?
Pascal -
Browser flash detection script
I need to put a flash detection scrip on my page as some of
my friends can't view my page.
Can you advise?
Thank You
Kevin... that is easy, go here
http://www.adobe.com/products/flashplayer/download/detection_kit/ -
Hello,
I got the flash detection kit and integrated it with a
website i am developing. Well a few people told me that they end up
with a blank page. I think that the flash detection did not work
and i am unable to check this part since all PCs at the office are
installed with the latest plugin.
How can i check if the detection is actually working ...
thanks
am>> How can i check if the detection is actually working
>
> Uninstall the plugin.
Agreed. :) The most convenient way I can think of is to use
Alessandro
Crugnola's Flash Switcher extension for Firefox.
http://www.sephiroth.it/weblog/archives/2006/10/flash_switcher_for_firefox.php
> Also, you might want to use SWFObject - it's a lot
nicer:
>
http://blog.deconcept.com/swfobject/
Agreed again. Geoff Stearns even wrote a Dev Center article
on its use:
http://www.adobe.com/devnet/flash/articles/swfobject.html
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
Using the Flash detection kit from adobe
Question:
I want to use the flash detection kit, which is downloadable
at abobe site.
But the actionscript example that is provided uses a
subdirectory (which is called flash_content) to play the content
when the detection has been done. I've altered the
'flash_detection.as" file, but still it only seems to work if my
content is in the subdirectory flash_content.
But I do not want my content in a subdirectory (also to do
with search robots).
I can't seem to make it work, has anybody got any idea?
thanksAnyone have any ideas?
-
Flash Detection Kit - Express Install - Without Internet
Im interested in finding out if its possible to configure the Flash Detection Kit to download the plugins from a network-local location instead of the adobe site. Im working on a system that will be accessed in a closed network environment, and I need to have the plugins available in-house for machines that may not have them installed.
Does anyone have any advice on the best way of solving this?
thank you!Anyone have any ideas?
-
I just paid ten dollars for an app called flash detect. It is a total scam ... I want my ten dollars back. How can apple allow these apps on their store???
You can try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that app and use the 'Report a Problem' link.
-
.Exe with Flash detection
Hey fellow Flash users,
i'm wondering if anyone could tell me how to publish a EXE
file in Flash that has an incorporated Flash Detection script.
For the moment i'm using a AS based detection for my sfw
file(downloaded from and Adobe site). Problem being that ithe final
product has to be a selfrunning demo, wich means an exe file
executing the swf file in a player.(atleast in my case).
I know it's possible to publish a SWF to an EXE, but by doing
so, the different files, AS and directories the Action scripts need
are not incorporated in the EXE file.
Is there a way to compact all the different AS files,
directories and swf files to one EXE file ?
any help will be appriciated.
greetsWhat you have said here doesn't make any sense to me. Flash
Detection script usually means a way to detect what Flash player
the user has installed and either adjust itself or recommend that
the user update their player.
By publishing an EXE you are bundling the player into the
file and even if the end user has a different version installed it
won't matter. The EXE will use the version that is included inside
the EXE so no detection is necessary.
Now if your problem is that the external assets aren't
included in the EXE, then no detection script is going to help.
There are two ways to address this. Just include the external
assets on a CD or something. Remember that all load paths will be
relative to the EXE. It is very easy to construct a self-running
demo of this sort. Just keep everything nicely organized.
There are also third party tools which allow for packaging
everything together into one file. I haven't used them so I don't
know how well any of them work. -
Flash CS6 code hinting not working?
Sometime it work, but now it never work even changing the seconds in code hints. Please advise. Thanks,
Flash CS6 code hinting issue
Maybe you are looking for
-
Mini-DVI to HDMI has poor quality on the TV
I am trying to watch TV On-line on my Samsung HD TV. I have purchased a mini-DVI to HDMI converter to connect my iMac to my TV. It's working, but the display quality is very poor. I have tried to Mirror the display and not and that's the same. The Di
-
Receiver Mail Adapter Question
Hi, I want to always send a constant message in the body of the email for confirmation, Do i always have to have a mapping? is there anyway i can do it without having to have a mapping program? As such can i use any existing modules for this? thanks,
-
Mac OS X Lion 10.7.5 802.1X drop issue
Hi, i have the following problem, when I'm at my college with 802.1X Wi-Fi connection, my connections seems to be dropping every now and then (1 min, 2 min) it's so anoying, it keeps asking me to enter my credentials every time, connections doesn't d
-
Private method in the comp controller
HI How do ui declare the private method in the componenet controller and declare the parameter one as the node and other as structure, when i click on methods tab it declears the public method with green logo in the implementation view, while i need
-
Imported HD Videos from iPhone 4S do not display properly on iMac
I love taking videos with my iPhone 4S. But, when I import them into my iMac, they play back in a jerky fashion, not smooth. This raises two questions, one regarding the iMac and one regarding the iPhone 4S. Is there a setting or a fix for this playb