I would like to see you create the class. Thanks, -Alex
From: Serkan Taş <serkan....@likyateknoloji.com> Reply-To: "users@royale.apache.org" <users@royale.apache.org> Date: Monday, March 4, 2019 at 10:55 AM To: "users@royale.apache.org" <users@royale.apache.org> Subject: Re: Work on Emulation I am calling from my app directly https://github.com/likyateknoloji/pinaraui-royale/blob/master/src/com/likya/pinara/main/PinaraUI.mxml<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flikyateknoloji%2Fpinaraui-royale%2Fblob%2Fmaster%2Fsrc%2Fcom%2Flikya%2Fpinara%2Fmain%2FPinaraUI.mxml&data=02%7C01%7Caharui%40adobe.com%7Cb30dfc208b1f4053d76c08d6a0d2fef8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636873225412581486&sdata=fvTSaR2%2FchQ%2BbOSKiNdIUIkRG9u1GTKQbBu%2BvfnNEoE%3D&reserved=0>[445] Sounds good to have such a class to keep the projects separated and to solve the issue without having such kind of dependency conflicts. May I create the class, or you may want to initiate. Thanks, Serkan 4.03.2019 21:48 tarihinde Alex Harui yazdı: How is org.apache.royale.net.URLLoader instantiated? Is it from HTTPService or are you using it directly in your app or something else? Maybe we need to create a mx.net.URLLoader in MXRoyale.swc that subclasses org.apache.royale.net.URLLoader so that mx.net.URLLoader can override as needed. -Alex From: Serkan Taş <serkan....@likyateknoloji.com><mailto:serkan....@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <users@royale.apache.org><mailto:users@royale.apache.org> Date: Monday, March 4, 2019 at 10:44 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <users@royale.apache.org><mailto:users@royale.apache.org> Subject: Re: Work on Emulation Hi Alex, To override the method in package org.apache.royale.net.URLLoader, I need to import mx.events.HTTPStatusEvent which is in emulation project. method : COMPILE::JS override public function dispatchEvent(event:Object):Boolean { try { if(event.type == "httpStatus") { var type:String = event.type; var status:int = event.value; var bubbles:Boolean = false; var cancelable:Boolean = false; event = new HTTPStatusEvent(type, bubbles, cancelable, status); } return super.dispatchEvent(event); } catch (e:Error) { if (e.name != "stopImmediatePropagation") throw e; } return false; } I am not sure if is it true to have such a dependency and how link emulation class to royale. Thanks, Serkan 28.02.2019 22:05 tarihinde Alex Harui yazdı: Yes, I would recommend trying to override dispatchEvent in URLLoader. HTH, -Alex From: Serkan Taş <serkan....@likyateknoloji.com><mailto:serkan....@likyateknoloji.com> Reply-To: "users@royale.apache.org"<mailto:users@royale.apache.org> <users@royale.apache.org><mailto:users@royale.apache.org>, "users@royale.apache.org"<mailto:users@royale.apache.org> <users@royale.apache.org><mailto:users@royale.apache.org> Date: Thursday, February 28, 2019 at 11:04 AM To: "users@royale.apache.org"<mailto:users@royale.apache.org> <users@royale.apache.org><mailto:users@royale.apache.org> Subject: Re: Work on Emulation I assume you confirm Alex. Thanks, Serkan