0 Replies Latest reply on Dec 24, 2011 10:04 AM by Jens Eckervogt

    Problem with custom Directory - for advanced directories

    Jens Eckervogt

      Hello dear peoples,


      i would create simple easy custom directory.


      I know there 5 diferent directories from Adobe AIr


      How do i know about current coding?

      I have been tired becasue it doesn't work because File or String


      Look Like this Simple create customdirectory for userPicturesDirectory or any


      userPicturesDirectory = C:\Users\<Username>\Pictures, <VolumeName>/Users/<Username>/Pictures and /home/<Username>/Pictures


      I have been created this code:


      package sm.System
                import flash.filesystem.File;
                import flash.system.Capabilities;
                public class Paths extends File
                          public static var userPicturesDirectory:File = _userPictures();
                                    Public function
                          private static function _userPictures():File
                                    return userPicturesDirectory;
                          public function Paths():void


      Than i am trying for Adobe Air - Why does Air not show in textinput ?

      I have been copied from compiled swc into Test Project with Adobe AIr.


      <?xml version="1.0" encoding="utf-8"?>
      <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()">
                                    import flash.filesystem.File;
                                    import sm.System.Paths;
                                    protected function init():void
                                              userPicDir.text = Paths.userPicturesDirectory;
                <mx:TextInput id="userPicDir" left="10" right="10" top="10"/>


      Now i test once Starting of Adobe Debug launcher.


      Why does it not show? What does it happen?

      Or i have been worng coded?


      Thanks for replies!