Monday, March 22, 2010

flash detection

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?flash detection
123akru wrote:

%26gt; I've got a problem with the javascript which should
detect the flash

%26gt; plugin version, if it ist deactivated or if there is a
flash plugin

%26gt; installed. I deactivated Flash in my browser. Now I want
my page to tell

%26gt; me that I have to activate the flash plugin. If I try it
locally on my

%26gt; pc everything works fine. If I try to upload it on our
server it don't

%26gt; work. and my page shows a broken image. Our server is a
linux mashine. Do

%26gt; anybody knows something about this problem?



THis sounds more of a HTML problems than a Flash problems.
but go here


http://blog.deconcept.com/swfobject/



Its the best flash detection there is that I know. its really
good and has

many functions and its Free with a forum as well.



Paul





flash detection
Thank you very much. I'll try it there.
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!
123akru wrote:

%26gt; Hello Paul,

%26gt;

%26gt; i tried to get some help from there. That doesn't work
unfortunately.

%26gt; Nobody answered my questions :-( I don't think that it
is a HTML problem

%26gt; because everything works fine locally. Mitght be a
problem, that

%26gt; informations about the flash plugin are transferred via
the HTTP Header.

%26gt; Do you have any experiences with it ?

%26gt;

%26gt; Thanks for your help.

%26gt; 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



%26lt;div id=''flashcontent''%26gt;

Error! You do not have a flash plugin.%26lt;BR%26gt;%26lt;a

href=''Errors_warnings/flash_not_detected.asp''%26gt;Click here
to get

plugin.%26lt;/a%26gt;%26lt;/div%26gt;



%26lt;script type=''text/javascript''%26gt;

// %26lt;![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'');

// ]]%26gt;

%26lt;/script%26gt;





No comments:

Post a Comment