IF flash installed THEN file.swf ELSE file.jpg

D

diablo

Hi

Is there a way to check if the user has flash installed so that you can say
if they have flash then show flash else show jpg

Thanks in advance

D
 
L

Lauri Raittila

Hi

Is there a way to check if the user has flash installed
No.

if they have flash then show flash else show jpg

Yes. Put your jpg inside the object element.

Should work, and sometimes actually does.
 
S

Spartanicus

diablo said:
Is there a way to check if the user has flash installed so that you can say
if they have flash then show flash else show jpg

<object data="flash.swf" type="application/x-shockwave-flash"
width="100" height="100">
<img src="jpeg.jpg" width="100" height="100" alt="alt text">
</object>
 
T

Travis Newbury

diablo said:
Is there a way to check if the user has flash installed so that you can say
if they have flash then show flash else show jpg

No, nothing reliable.
 
T

Travis Newbury

Spartanicus said:
<object data="flash.swf" type="application/x-shockwave-flash"
width="100" height="100">
<img src="jpeg.jpg" width="100" height="100" alt="alt text">
</object>

Only works is the don't have flash installed. If they have the wrong
version of flash it doesn't work. While this _IS_ what the OP asked, I
would guess he forgot about people with the wrong version.
 
E

Els

Travis said:
Only works is the don't have flash installed. If they have the wrong
version of flash it doesn't work.

That's something I encounter quite often, actually. Isn't it possible
to cater for those occurences too?
 
T

Travis Newbury

Els said:
That's something I encounter quite often, actually. Isn't it possible
to cater for those occurences too?

There are sniffers out there, but the only reliable way is to have some
one see if they can see a small flash movie (some animation) published
in the correct version. If they can't see the animation tell them to
upgrade. That is the ONLY reliable way if the flash is mandatory for
the site or application.
 
S

SpaceGirl

Els said:
Travis Newbury wrote:




That's something I encounter quite often, actually. Isn't it possible
to cater for those occurences too?

You can write a little JS to trap the Flash version. If they dont have
js installed either... well you have to add a js trap as well :)

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
S

SpaceGirl

Travis said:
There are sniffers out there, but the only reliable way is to have some
one see if they can see a small flash movie (some animation) published
in the correct version. If they can't see the animation tell them to
upgrade. That is the ONLY reliable way if the flash is mandatory for
the site or application.

Yep - only way without scripting anyway.

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
T

Travis Newbury

SpaceGirl said:
Yep - only way without scripting anyway.


But all scripting methods are unreliable. If it is essential that the
Flash work, then you have to let the visitor tell you if they have the
right version. You can not rely on any automated method.
 
E

Els

SpaceGirl said:
You can write a little JS to trap the Flash version. If they dont have
js installed either... well you have to add a js trap as well :)

I think that /is/ the JS trap ;-)
 
N

Neredbojias

With neither quill nor qualm, diablo quothed
Hi

Is there a way to check if the user has flash installed so that you can say
if they have flash then show flash else show jpg

That's a good question but Flash sucks if you have a slow connection.
I've removed Flash from every computer I've had since 1937.
 
T

Travis Newbury

Neredbojias said:
That's a good question but Flash sucks if you have a slow connection.
I've removed Flash from every computer I've had since 1937.

Na, Flash only sucks on a slow connection if the developer doesn't know
how you create swfs correctly.
 
N

Neredbojias

With neither quill nor qualm, Travis Newbury quothed
Na, Flash only sucks on a slow connection if the developer doesn't know
how you create swfs correctly.

You may be right but almost all the Flash experiences I've had made me
wait "forever", didn't announced what they were to begin with, and
didn't inquire if I had the necessary software until *after* the damn
thing downloaded first.
 
T

Travis Newbury

Neredbojias said:
You may be right but almost all the Flash experiences I've had made me
wait "forever", didn't announced what they were to begin with, and
didn't inquire if I had the necessary software until *after* the damn
thing downloaded first.

Most (90%+ from my experience) Flash sucks. Developers don't know how
to optimize tweens, they bloat it with needless imbedded images
(usually because they believe they can only dynamically load jpg's) and
they haven a clue how to use Actionscript to eliminate needless
timelines and frames.

A good sign that your Flash is bloated is when you need a loader.
 
N

Neredbojias

With neither quill nor qualm, Travis Newbury quothed
A good sign that your Flash is bloated is when you need a loader.

Yes. I like to save my loader for other things and Flash only when
necessary.
 

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

No members online now.

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top