AS tips: \ in String
If there is "\" in a String variable, it will be "deleted" automatically and immediately (since "\" is usually used to represent something e.g. "\n" means a line break), and you won't be able to replace it e.g. with regular expression. To overcome this, you may use "\\".
            Actionscript:
            
              
                
            
          
          
          - 
                    var link:String="C:\Program Files\Adobe";
 - 
                    trace(link);
 - 
                    // ouput --> C:Program FilesAdobe
 - 
                    
 - 
                    var link2:String="C:\\Program Files\\Adobe";
 - 
                    trace(link2);
 - 
                    // ouput --> C:\Program Files\Adobe
 
However, if the value is taken from a textfield (either dynamic or input textfield), the "\" will still remain.
            Actionscript:
            
              
                
            
          
          
        - 
                    // There is a dynamic text field on stage
 - 
                    // with value "C:\Program Files\Adobe"
 - 
                    
 - 
                    trace(txtField.text)
 - 
                    
 - 
                    // output --> C:\Program Files\Adobe