You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/05/27 04:01:22 UTC

[GitHub] [royale-asjs] raudjcholo opened a new issue #842: Event.CANCEL is not implemented

raudjcholo opened a new issue #842:
URL: https://github.com/apache/royale-asjs/issues/842


   I am using the FileReference component to upload files from my system. But I can't catch when user cancels popup because CANCEL event doesn't exist in event class. There is this event in Flex.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] raudjcholo commented on issue #842: Event.CANCEL is not implemented

Posted by GitBox <gi...@apache.org>.
raudjcholo commented on issue #842:
URL: https://github.com/apache/royale-asjs/issues/842#issuecomment-642589579


   Ok, I have tested with that version of IE and all is right. I have also tested on EDGE and the result is satisfactory


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] raudjcholo commented on issue #842: Event.CANCEL is not implemented

Posted by GitBox <gi...@apache.org>.
raudjcholo commented on issue #842:
URL: https://github.com/apache/royale-asjs/issues/842#issuecomment-641202854


   Hi:
   I have tested on Windows, specifically on Firefox and Chrome,  and it works perfectly.
   I have also tested on IE 11, but in this browser FileReference doesn't work well. Select Event Handler does not launch.
   
   Example:
   ```
   public function loadFromFileSystem(allowedExtensions:String, imagesFilterDescription:String):void
   {
   	trace("loadFromFileSystem");
   	var file:FileReference = new FileReference();
   	file.addEventListener(Event.SELECT, selectHandler);
           file.browse([new FileFilter(String(imagesFilterDescription) +
           " (" + allowedExtensions.replace(/\*\./g, "").replace(/;/g, ",").toUpperCase() + ")", 
           allowedExtensions)]);
   }
   		
   private function selectHandler(event:Event):void
   {
           ...
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] raudjcholo commented on issue #842: Event.CANCEL is not implemented

Posted by GitBox <gi...@apache.org>.
raudjcholo commented on issue #842:
URL: https://github.com/apache/royale-asjs/issues/842#issuecomment-636687794


   I want to do something like this:
   
   ```
   private function cancelHandler(event:Event):void
   		{
   			fileBrowsing = false;
   			var dispatcher:IEventDispatcher = IEventDispatcher(event.target);
   			dispatcher.removeEventListener(Event.CANCEL, cancelHandler);
   			dispatcher.removeEventListener(Event.SELECT, selectHandler);
   		}
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] aharui commented on issue #842: Event.CANCEL is not implemented

Posted by GitBox <gi...@apache.org>.
aharui commented on issue #842:
URL: https://github.com/apache/royale-asjs/issues/842#issuecomment-636291894


   Hmm.  It appears that the browser does not send a CANCEL event.  What does your code do in response to the CANCEL event?  Maybe there is some way to workaround your specific case.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] aharui commented on issue #842: Event.CANCEL is not implemented

Posted by GitBox <gi...@apache.org>.
aharui commented on issue #842:
URL: https://github.com/apache/royale-asjs/issues/842#issuecomment-640134197


   I pushed a change that seems to work on Mac for Safari, FireFox and Chrome.  It is sort of a hack in that the cancel event on Safari and Firefox won't get sent until the user moves the mouse or hits a key.  I couldn't find any other way to detect that the file dialog has gone away.  In Chrome we get blur/focus events so it is easier.  I haven't tested on Windows.  Report back if there are problems.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] aharui commented on issue #842: Event.CANCEL is not implemented

Posted by GitBox <gi...@apache.org>.
aharui commented on issue #842:
URL: https://github.com/apache/royale-asjs/issues/842#issuecomment-638606601


   Do you have to support all browsers and operating systems or only a few?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] raudjcholo commented on issue #842: Event.CANCEL is not implemented

Posted by GitBox <gi...@apache.org>.
raudjcholo commented on issue #842:
URL: https://github.com/apache/royale-asjs/issues/842#issuecomment-638940812


   as many browsers and OS as possible


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] aharui commented on issue #842: Event.CANCEL is not implemented

Posted by GitBox <gi...@apache.org>.
aharui commented on issue #842:
URL: https://github.com/apache/royale-asjs/issues/842#issuecomment-642454164


   It seems to be working for me on IE11.  Try it without a FileFilter.  Make sure that IE isn't in some compatibility mode.  I used IE 11.836.18362.0 with update version 11.0.190.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org