Avatar

Level 2

Hi Hironmay

  I now know where _FileShare_FileShare1 is coming from.  It is the default id given to the FileShare UI component by Flex (as I am not explicitly specifying an ID).  My parent component (my AIR Window which contains the FileShare component) is named FileShare.  Flex automatically assigns the FileShare component an id of _[parentname]_[ComponentName]x .  If I had named the window component 'MyWin'  _MyWin_FileShare1 would be passed in.

  This default ID is then passed into the AFCS code.  Take a look at FileShare.as line 360


        public function subscribe():void
        {
            // if the id is not set , then take default shared ID if it is not set not, else take the set shared id value
            // if id is set, then if shared id is not set, take set sharedID to id and take it, otherwise , take the set shared id

               if ( id == null ){
                if ( sharedID == null ) {
                    sharedID = DEFAULT_SHARED_ID ;
                }
                _groupid = sharedID;
            }else {
                if ( sharedID != null ) {
                    _groupid = sharedID;
                }else {
                    sharedID = id ;
                    _groupid = sharedID ;
                }
            }

Here, id is _FileShare_FileShare1, so it is not null, so it falls into the final else clause - sharedID and _groupID become _FileShare_FileShare1.

If I add the sharedID property, then I can upload a file, and I do see the newly uploaded file in the Room Console, but I do not see it in the FileShare box.

thanks

Mark