Avatar

Level 2

Hi Hironmay

  Do you have any feedback regarding this?  I would really love to use the FileShare component, but I cannot get it to work when logged into the room as a Guest.

  The AFCS code above (Subscribe function) in FileShare.as seems incorrect to me.  I don't think the component id should be used by AFCS - I think it should only be used by Flex.  It should require the sharedID to be set.  I beleive that the line '  if ( id == null ){' is incorrect because id can never be null.

  When I add the sharedID e.g.

    <rtc:FileShare  sharedID="default_FileSharePod" width="100%" height="100%" connectSession="{this.connectSession}"    />

  and enter the room as a guest (with no host logged in to the room) I am allowed to upload files, and those files do appear in the Room Console, but do not appear in the FileShare component, and addiditionally all the buttons are disabled.  The AFCS code gets to the following function in FileShare.as:

protected function enableButtons():void
        {
            var bSelected:Boolean = (_fileGrid.selectedItems.length > 0 && !isSelectItemsUploadingFile()) ;   
           
            if(_roomManager.roomState == RoomSettings.ROOM_STATE_ACTIVE) {

                    ... code to enable the buttons

                }

          else {
                _downloadButton.enabled = false;                   
                _uploadButton.enabled = false;                   
                _deleteButton.enabled = false;
                _cancelUploadButton.visible = _cancelUploadButton.enabled = false;
            }

  but _roomManager.roomState is 'hostNotArrived' so all the buttons are disabled.

  Please help!!

thanks

Mark