Solved

Macromedia flash determine windows ver or read registry

Posted on 2003-11-06
1
574 Views
Last Modified: 2013-12-16
is it possible to read a value from the registry through macromedia flash mX?

 i would just like to determine the windows version the user is operating on
 
 
0
Comment
Question by:jxharding
1 Comment
 
LVL 2

Accepted Solution

by:
Mikehd earned 125 total points
ID: 9782269
You don't need to read the registry settings, don't think you can...

As long as the swf will be used in a browser you can use javascript to detect the windows version and send it in to flash.

<script>
if (navigator.appVersion.toLowerCase().indexOf("windows nt 5.1") != -1){
      myOs = "windows XP"
} else if (navigator.appVersion.toLowerCase().indexOf("windows nt 4") != -1){
myOs = "windows NT"
}
ect...
</script>
You'll have to get all the correct appVersions to search for, but a google search should work.
I found this page:
http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html

Then send the variable in the swf, to do this you have to write the flash stuff with javascript:

 document.write("<PARAM NAME=movie VALUE=\"getWindowVersion.swf?myFlashOsVar=\" + myOs "\">"

add the ?myFlashOsVar=\" + myOs "\" in the embed tag also

Does this make sense?

M=
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question