Solved

Macromedia flash determine windows ver or read registry

Posted on 2003-11-06
1
572 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now