MD5 issue or wrong encoding ?

2023-07-12 Thread contact
Hi, Here is one test file of 1 octet (0xc0 ie 192 in decimal) inside. When using md5sum (on linux) of this file the result is 4843a4868714fa7589e8ef87756bcacf But when I do this : import org.apache.royale.utils.MD5; var test:BinaryData = new BinaryData([0xc0]); //À trace("->" + MD5.hash(

Re: MD5 issue or wrong encoding ?

2023-07-12 Thread contact
Hi, I answer myself... If fix the issue by patching MD5.as by removing UTF8 encoding like this : /* * Encode a string as utf-8 */ private static function str2rstrUTF8 (input:String):String { return input; //return unescape(encod

UIBase has mouse events but not keyboard events?

2023-07-12 Thread Josh Tynjala
I'm trying to convert some Flex code to Royale. In particular, I'd like to add a keyDown listener to a component in MXML so I can listen to special keys like Esc, but there doesn't seem to be any [Event] metadata for keyboard events on UIBase. I see that there is [Event] metadata for mouse events,

Re: UIBase has mouse events but not keyboard events?

2023-07-12 Thread Harbs
I don’t have any objections on principle, but there is something which might be a technical challenge: In swf it’s “keyDown” and “keyUp”, but in JS it’s “keydown” and “keyup”. I’m not sure how to handle that with metadata and MXML. > On Jul 13, 2023, at 1:20 AM, Josh Tynjala wrote: > > I'm tr

Re: UIBase has mouse events but not keyboard events?

2023-07-12 Thread Harbs
Also: with modern apps that might have touch events, keydown and keyup are less useful than they used to be. Handling all the input-related events by default is likely a bit much. > On Jul 13, 2023, at 8:40 AM, Harbs wrote: > > I don’t have any objections on principle, but there is something w

Re: UIBase has mouse events but not keyboard events?

2023-07-12 Thread Yishay Weiss
What needs to be in UIBase is not exact science, but mouse events apply to nearly all controls whereas keyboard events are usually limited to textinputs and such, and even then you don't necessarily need to capture them. So I think there is reason to prefer mouse over keyboard. TextInput in Basi

Re: UIBase has mouse events but not keyboard events?

2023-07-12 Thread Greg Dove
I have a large amount of monkey patches to get into the mx emulation code which I will try to get in earlier, but that realistically I might not get to until September. iirc, I think there were some keyboard event related improvements among them. Emulation already has the keyDown vs. keydown varia