PDA

View Full Version : [AS3] registry


fulvio
01-16-2011, 03:49 PM
Hi people!

I have a serious problem. I'm working on a project that require to store data in the registry.
It is because I download and install a flash application and then I need the possibility to download other application that require to know where the first application was installed and see some properties like version and others variables.

I read that AS3 doesn't permit to access the registry. Is it possible?
What do you recommend me to do? Exist other possibility?

Thank you very much for your help!

zyxstand
01-16-2011, 04:01 PM
flash is supposed to be secure for any user who uses it online. the most you can do with it is put a cookie (sharedObject) on the user's computer, but you can't write to the hard drive - especially not the registry - in any way. look into flash air, it at least allows you to save to the hd, but it's not something you can upload as a flash file online.

henke37
01-16-2011, 04:11 PM
Nope, AIR has no registery access api.

krayzeebean
01-16-2011, 04:25 PM
A quick Google search brought up the answer (sort of) on Stack Overflow, someone there said it can be done with the help of FluorineFX Aperture. I've never tried it myself but it's worth a shot: http://aperture.fluorinefx.com/

Do you really need to use the registry though? You can store that info in the users directory.

fulvio
01-16-2011, 04:57 PM
Hi, thanks for the response. how could I access the user directory? It is the same location for any pc?

Is it possible to use ant other language and communicate it to the swf?

krayzeebean
01-16-2011, 05:06 PM
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html

henke37
01-16-2011, 05:10 PM
Of course it is not in the same location for any computer. It's not even at the same location for different users on the same computer. Never harcode any local filesystem path.