Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   It is possible to have a script to detect if Flash... (http://www.velocityreviews.com/forums/t161310-it-is-possible-to-have-a-script-to-detect-if-flash.html)

Mr Bean 03-23-2005 01:21 PM

It is possible to have a script to detect if Flash...
 
....is anbled on a client machine and load right page?

I mean if Flash will not work, than load 'normal' page?

Thanx in advance...

mark | r 03-23-2005 01:33 PM

Re: It is possible to have a script to detect if Flash...
 

"Mr Bean" <ewolucja?_O_nie!@gmail.com> wrote in message
news:42416ded$1@quokka.wn.com.au...
> ...is anbled on a client machine and load right page?
>
> I mean if Flash will not work, than load 'normal' page?


http://www.moock.org/webdesign/flash...tion/moockfpi/
is the best one ive found

mark



Travis Newbury 03-23-2005 04:02 PM

Re: It is possible to have a script to detect if Flash...
 
Mr Bean wrote:
> ...is anbled on a client machine and load right page?
> I mean if Flash will not work, than load 'normal' page?


No, not one that is reliable. The best way is to have a small flash
loaded with the version you need them to have (using a feature unique
to that version) then tell them if they can't see the flash they have
to download a new version.

Everything else is unreliable at best.

--
-=tn=-


Carolyn Marenger 03-23-2005 07:01 PM

Re: It is possible to have a script to detect if Flash...
 
On Wed, 23 Mar 2005 21:21:45 +0800, Mr Bean wrote:

> ...is anbled on a client machine and load right page?
>
> I mean if Flash will not work, than load 'normal' page?
>
> Thanx in advance...


Since I don't use flash, I can't say for sure, but it would seem to me
that if you have the spalsh page set to load the non-flash index page
after say 5 seconds, then have it run a flash ?script? that loads the
flash enabled index page. If the flash doesn't run, then after the
timeout the non-flash page will load. If it does, then the flash page
loads.

Something like this. (I am sure a few people will jump in and correct me,
so just wait a bit and you should have some useable code.)

<html>
<head>
<meta http-equiv="Refresh"
content="5;url=http://www.example.com/noflash/index.html">
<title>My Splash Page</title>
</head>
<body>
<h1>My Splash Page</h1>
<p>Please wait while we determine if you need the flash or non-flash
version of the site.</p>
<!-- FLASH CODE
FlashCommand - Load("www.example.com/flash/index.html")
END FLASH CODE -->
</body>
</html>

Toby Inkster 03-23-2005 09:47 PM

Re: It is possible to have a script to detect if Flash...
 
Mr Bean wrote:

> ...is anbled on a client machine and load right page?


It's unlikely that you need such a script. Just do something like:

<object data="flashcontent" type="application/x-shockwave-flash"
height="240" width="320">
<p><abbr title="Hypertext Markup Language">HTML</abbr> content.</p>
</object>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact


Travis Newbury 03-24-2005 01:44 AM

Re: It is possible to have a script to detect if Flash...
 
Toby Inkster wrote:
>>...is anbled on a client machine and load right page?

> It's unlikely that you need such a script. Just do something like:
> <object data="flashcontent" type="application/x-shockwave-flash"
> height="240" width="320">
> <p><abbr title="Hypertext Markup Language">HTML</abbr> content.</p>
> </object>


Well that doesn't quite work. If the visitor has Flash but the wrong
version it will load yet it will not work. Flash is backwards
compatible with compatible features. For example if you use the tree
component from flash mx2004, and your user has Flash mx installed,
everything BUT the tree component works.

This is why that non-embed code for flash that pops up here every now
and then (allspice or something?) doesn't cut it. I believe they even
discuss that as one of the issues with their solution on their web page.

Now one can, in their flash movie, check the users version and let them
know they have the wrong version. I believe Macromedia uses that method
on their site and suggests others do too. I believe they compile a flash
movie for flash 2, then check the player version to see if it the
version they need to run the "real" movie.

As a side note, Flash is best used on website where people EXPECT flash.
(kids sites, intranet, movie sites, web applications, game sites,
entertainment sites, etc...) places where people go to have fun or play
games, or want more than text and images. It is NOT for most other
sites (especially if the site is dependent on Flash.)

--
-=tn=-

Mark Parnell 03-24-2005 01:58 AM

Re: It is possible to have a script to detect if Flash...
 
Previously in alt.html, Travis Newbury <tn@swingers.com> said:

[User having Flash, but wrong version]
> This is why that non-embed code for flash that pops up here every now
> and then (allspice or something?)


http://alistapart.com/articles/flashsatay/

> doesn't cut it. I believe they even
> discuss that as one of the issues with their solution on their web page.


It's kind of mentioned, yes. Though they suggest a different solution to
Macromedia. I prefer Macromedia's idea, personally.

--
Mark Parnell
http://www.clarkecomputers.com.au

Travis Newbury 03-24-2005 02:12 AM

Re: It is possible to have a script to detect if Flash...
 
Mark Parnell wrote:
> It's kind of mentioned, yes. Though they suggest a different solution to
> Macromedia. I prefer Macromedia's idea, personally.


I think combining Macromedia's solution with Tobie's solution is
probably the best, as you are covering your butt as best as you can
using Flash.


--
-=tn=-

Mark Parnell 03-24-2005 02:17 AM

Re: It is possible to have a script to detect if Flash...
 
Previously in alt.html, Travis Newbury <tn@swingers.com> said:
> Mark Parnell wrote:
>> It's kind of mentioned, yes. Though they suggest a different solution to
>> Macromedia. I prefer Macromedia's idea, personally.

>
> I think combining Macromedia's solution with Tobie's solution is
> probably the best, as you are covering your butt as best as you can
> using Flash.


I agree. What I meant was that I preferred Macromedia's solution to that
specific problem. The rest of the article is great advice.

--
Mark Parnell
http://www.clarkecomputers.com.au

Toby Inkster 03-24-2005 07:22 AM

Re: It is possible to have a script to detect if Flash...
 
Mark Parnell wrote:

> http://alistapart.com/articles/flashsatay/


The FS method is stupid. No browser requires that PARAM element in there,
so why does Drew leave it in?

The streaming method is cute. It would be nice if they provided a sample
c.swf for us to download and use though.

Other than the cute streaming method, my method is better. If you require
a very recent version of Flash, then include the codebase attribute for IE
using conditional comments.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact


All times are GMT. The time now is 11:09 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57