Solved

Macromedia flash determine windows ver or read registry

Posted on 2003-11-06
1
590 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The purpose of this video is to demonstrate how to Import and export files in WordPress. 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 : Click on Too…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

624 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