-
Flash only Player Detection
Hi there,
Please can somebody tell me the code required to do a GetURL which only the Flash Player 6 will do?
Thanks,
CN.
-
You mean condition the getURL to work if and only the Flash player 6 is installed?
-
-
Use getVersion()...
// a simple function to get the version number...
_root.getVersionNum = function() {
var num = getVersion().substr(4, 1);
return num;
};
// and use like so...
if (_root.getVersionNum() < 6) {
getURL("http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash");
} else {
getURL("/main.htm")
}
-
-
Oh, hang on.
'getVersion().substr(4, 1)' will give you a blank space if the platform is UNIX.
Look here
C.
-
Check for the platform also, then!
-
But new one's may arise.
What I need is some code which simply won't work in 5 and below.
For the Flash player 5, I think this could be achieved by calling a function.
-
I think I got it.
I just switched compression on.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|