Add Delete Modify registry keys with Flash


It appears that flash cannot directly add, delete, or modify registry keys.  However, perhaps a different creative approach would work.

We are developing a VB6 app that includes an extensive flash movie (embedded in with the main.frm).  Within the movie, there are numerous controls (check boxes, drop-down boxes, etc).  We need to write those values either to registry (preferred) or to a notepad file, or the like, so that our application can read the values and run as designed.  While Flash may not directly write the keys, is it possible for it to trigger an external process or app to write the required values?

Please help with solution and possible example code.

Your help is appreciated!
Who is Participating?
Meir RivkinConnect With a Mentor Full stack Software EngineerCommented:
running reg files from flash:


fscommand("exec", "<.reg file path>");

creating config file:
since we should treat the config file as xml then the code could be like this:

my_xml = new XML("<configuration>
<control id="txtBox1">
<location x="12" y="50"/>
<size width="100" height="100"/>
<control id="dropDownList1">
<location x="66" y="77"/>
<size width="50" height="50"/>

this is in case the config file doesn't exist (for example in the first time running the app), if it is exists u can load it using the following:

var my_xml = new XML();
my_xml.onLoad = function(success){

if (success){


//here u parse the configuration xml


Hello. You can use reg.exe. See documentation here with examples
Meir RivkinFull stack Software EngineerCommented:
why not writing those values in to a configuration file?
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Meir RivkinFull stack Software EngineerCommented:
also u can build .REG file with the values u wish to store in registry and run it from the flash component.
technotommyAuthor Commented:
excellent possible solutions!

Sedgwick - Do you have, or can you make example code for writing to config file?  or even better, example code for running the .reg file with flash?

Many thanks!
Meir RivkinFull stack Software EngineerCommented:
to parse xml using flash check this tutorial:
technotommyAuthor Commented:
Great code!  Many thanks for your assistance!!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.