Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Macromedia flash determine windows ver or read registry

Posted on 2003-11-06
1
Medium Priority
?
594 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 500 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 your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

730 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