Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : testing flashplayer


Manfred Knabl
2/27/2004 8:25:40 PM
Hi!

When I published my Website, some users informed me about a big problem!
They could'nt see anything, cause my startpage only included a flash mx
movie.
So I tried to find a method to solve the problem for my customers.

I have found a solution which uses action scrtiping, so flash controlls
itself.

Here my scripts, which I placed in my startpage:

1)
ifFrameLoaded(5) {
gotoAndPlay(3);
}

2)
gotoAndPlay(1);

3)
a = eval("$version");

4)
x = "1";
while (Number(x) < Number(length(a))) {
if (substring(a,x,1) eq ",") {
if (Number(substring(a,x-1,1)) == 5) {
getURL("indexof.html");
stop();
}
if (Number(substring(a,x-1,1)) == 6) {
getURL("index6.html");
stop();
}
if (Number(substring(a,x-1,1)) == 7) {
getURL("index6.html");
stop();
}
}
x = Number(x)+1;
}

5)
pl4 = "true";
if (pl4 eq "true") {
getURL("indexof.html");
stop();
}

But what about users who does'nt have any player?

Here I used a html-meta-tag like this:
<meta http-equiv="refresh" content="6; URL=indexof.html">

All seems to be OK, but some users still informed me, that they can't see
anything (white screen).

Who can help me with this problem?
Possibly I have forgotten some important facts?

thanks, Manfred.

Laiverd.COM
2/28/2004 2:16:43 PM
You method indeed will only work if you assume a flash player. If tyou want
to detect for any player at all you have to use javascript. Solutions:
1. Flash Deploymentkit (www.macromedia.com)
2. Flash Publishing templates that come with the program
3. The best (but you have to adapt the script to detect Flash Player 7 if
you want) http://moock.org/webdesign/flash/detection/moockfpi/

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

AddThis Social Bookmark Button