I don't think there's a way to directly get a reference to the "My
Music" path in AIR. You can get it using documentsDirectory though,
but the code will be different on XP and Vista:


var directory:File = File.documentsDirectory;

if (Capabilities.os == "Windows XP") {
   directory = directory.resolvePath("My Music"); // On XP
} else {
   directory = directory.resolvePath("Music"); // On Vista (and Mac?)
}

Laurent



--- In flexcoders@yahoogroups.com, "itdanny2002" <[EMAIL PROTECTED]> wrote:
>
> I know that Windows keep the default 
> path of "My Music" in Registry Key.
> How can I get it in FLEX or AIR ?
>


Reply via email to