Re: TextConverter method call

2019-11-28 Thread serkan . tas



Alıntı Serkan Taş :


Hi Alex,

TextConverter :  
https://drive.google.com/open?id=1_6-rBQqTISbeoLvS2-yV8bSFkvS_ApxZ


It is working without any excepiton, but still can not show the text  
in TextArea.


Going to try to find-out why...

Thank,
Serkan

27.11.2019 08:57 tarihinde Alex Harui yazdı:
By deferring the initialization of _descriptors until it is  
actually needed, the code allows FormatDescriptor to get loaded.   
If the initialization code that needs FormatDescriptor runs too  
soon, then FormatDescriptor won't have been loaded yet.


At least, that's the theory,
-Alex

On 11/26/19, 9:50 PM, "serkan@likyateknoloji.com"  
 wrote:


Hi Alex,
 Sorry for inconvenience. I was just sent it before leaving  
home in the

morning. I am going to send you the real code and check your sample
later today.
 But I did not understand the what should I do for FormatDescriptor.
 Is there a workaround ?




--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: TextConverter method call

2019-11-26 Thread serkan . tas

Hi Alex,

Sorry for inconvenience. I was just sent it before leaving home in the  
morning. I am going to send you the real code and check your sample  
later today.


But I did not understand the what should I do for FormatDescriptor.

Is there a workaround ?


Alıntı Alex Harui :


That link took me to the FormatDescriptor class.

The FormatDescriptor exception is a side-effect of having naked  
static initialization code.  We want to defer static initialization  
until it is really needed so that the load order of classes doesn’t  
matter as much (or at all).


My current opinion (again without spending too much time thinking  
about it) is to convert the var into a get function.  Most other  
methods in TextConverter access _descriptor and thus would  
initialize it just-in-time as it is needed.  Something like:


Static private var __descriptors:Array;

static public function get _descriptors():Array
{
  If (!__descriptors) {
_descriptors = [];
addFormat(TEXT_LAYOUT_FORMAT, TextLayoutImporter,  
TextLayoutExporter, TEXT_LAYOUT_FORMAT,__descriptors);
addFormat(TEXT_FIELD_HTML_FORMAT,  
TextFieldHtmlImporter,  TextFieldHtmlExporter, null,__descriptors);
addFormat(PLAIN_TEXT_FORMAT, PlainTextImporter,  
PlainTextExporter, "air:text", __descriptors);

}
  }

And add an optional last param to addFormat to specify the array to  
add to, so it doesn’t access the getter during initialization.


HTH,
-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, November 26, 2019 at 8:14 PM
To: "users@royale.apache.org" 
Subject: Re: TextConverter method call

Alex, I have implemented in other way, here it is : >  
https://drive.google.com/open?id=1oPLnVz7jyWJe7Z_V25o773hQYlrRaD6B


But I have another exception in other thread , can you check it ?

subject : "org.apache.royale.textLayout.conversion.FormatDescriptor  
is not a constructor"

27.11.2019 01:34 tarihinde Alex Harui yazdı:
Nevermind, that won’t work in this case.  I think you still need to  
initialize _descriptors with a static initializer.  I think I would  
use an internal version of addFormat for doing that.  Or maybe  
manually code _descriptors as a get/set.


HTH,
-Alex

From: Alex Harui 
Reply-To: "users@royale.apache.org"  


Date: Tuesday, November 26, 2019 at 2:22 PM
To: "users@royale.apache.org"  


Subject: Re: TextConverter method call

Yes, probably a good idea, in which I case I would just use a dummy  
initializer


/** @private */
static public function setFormatsToDefault():Boolean// No PMD
{
_descriptors = [];
addFormat(TEXT_LAYOUT_FORMAT, TextLayoutImporter,  
TextLayoutExporter, TEXT_LAYOUT_FORMAT);
addFormat(TEXT_FIELD_HTML_FORMAT, TextFieldHtmlImporter,  
 TextFieldHtmlExporter, null);
addFormat(PLAIN_TEXT_FORMAT, PlainTextImporter,  
PlainTextExporter, "air:text");

return true;
}
static public var _descriptors:Array;
static private var formatsSet:Boolean = setFormatsToDefault()




From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Tuesday, November 26, 2019 at 11:44 AM
To: "users@royale.apache.org"  


Subject: Re: TextConverter method call

Do I have to keep addFormat and addFormatAt compatible for external  
usage, because they are public may be called from other classes ?

26.11.2019 21:15 tarihinde Alex Harui yazdı:
It “should” but we are not fully supporting “naked code” (code not  
in methods) right now.  I’ve never liked the pattern and I’m not  
sure all minifiers know how to handle it, so the easiest answer for  
now is to rewrite the pattern.


One way to rewrite is to have setFormatDefaults return an array and  
initialize _descriptors.  Something like:


// register standard importers and exporters
setFormatsToDefault();

/** @private */
static public function setFormatsToDefault():Array// No PMD
{
var arr:Array = [];
addFormat(arr, TEXT_LAYOUT_FORMAT, TextLayoutImporter,  
TextLayoutExporter, TEXT_LAYOUT_FORMAT);
addFormat(arr, TEXT_FIELD_HTML_FORMAT,  
TextFieldHtmlImporter,  TextFieldHtmlExporter, null);
addFormat(arr,PLAIN_T

Re: Tree component not functions correctly

2019-11-06 Thread serkan . tas

Sure, I may have look later today, after work hours :)

Thanks,
Serkan

Alıntı Yishay Weiss :

It’s up to you. If you want to put a breakpoint in  
HierarchicalCollectionView.dispatchAddOrRemoveEvents() and come up  
with a fix that would be very helpful.



From: serkan@likyateknoloji.com 
Sent: Wednesday, November 6, 2019 10:07:13 AM
To: users@royale.apache.org 
Subject: Re: Tree component not functions correctly

Thank you for the info Yishay,

Let me know if I can do anything.

Serkan.


Alıntı Yishay Weiss :


The problem is in
HierarchicalCollectionView.dispatchAddOrRemoveEvents(). Item is
removed and index is incremented so the next item to be removed is
an index too high. I’ll see if I can come up with a safe fix later
today.


From: Yishay Weiss 
Sent: Wednesday, November 6, 2019 8:12:57 AM
To: users@royale.apache.org 
Subject: RE: Tree component not functions correctly


Never mind, I can reproduce it using the example upthread.




From: Yishay Weiss 
Sent: Wednesday, November 6, 2019 6:49:00 AM
To: users@royale.apache.org 
Subject: RE: Tree component not functions correctly


Hi Serkan,



If you open a bug with a clear test case I’ll have a look at it this week.



Thanks,

Yishay




From: Serkan Taş 
Sent: Wednesday, November 6, 2019 5:50:50 AM
To: users@royale.apache.org 
Subject: Re: Tree component not functions correctly

Alex, I am aware what is going on. I, my self emulated 10s of
classes last year. I am not a newcomer.

What I am trying to do is, to move one step forward.

My application is highly dependent on tree component. Can not work without.

I worked on code, tried to find out what is wrong with tree component.

As I do not have deep knowledge on framework, i could not move forward.

E.g. altough expand item function  is commented it is not clear why
still tree is  expended on click. Guess goes with event handling.

If you guide a little I may move further on fw.

Belive me I have lots of things to do on my site after passing fw.

Thanks,
Serkan

Android için Outlook'u edinin




On Wed, Nov 6, 2019 at 12:08 AM +0300, "Alex Harui"
mailto:aha...@adobe.com>> wrote:


Serkan,



In general that’s true of most components.  We emulate what people
need.  We don’t have enough committers to do things just-in-case.
If you tell us what you need, someone will work on it, although it
is even better if you figure out how to emulate whatever is missing
yourself.



Royale is not backed by some corporation like Adobe or Apache.  It
is up to the users to become committers and support and maintain the
code.



-Alex



From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, November 5, 2019 at 11:11 AM
To: "users@royale.apache.org" 
Subject: Re: Tree component not functions correctly



Alex, when I check Tree control, it is not completely emulated.

Just for info.

4.11.2019 07:40 tarihinde Serkan Taş yazdı:

Sure Alex,

1. Step open the page :

[cid:image001.png@01D593DA.0F4C2620]

2. Open "Outbox"

[cid:image002.png@01D593DA.0F4C2620]

3. Close "Outbox" => "Spam " is missing, "Personal" is shown

[cid:image003.png@01D593DA.0F4C2620]

4. Open "Inbox"

[cid:image004.png@01D593DA.0F4C2620]

5. Close "Inbox" =>  "Product Manager" is shown

[cid:image005.png@01D593DA.0F4C2620]

Thanks,
Serkan

4.11.2019 02:26 tarihinde Alex Harui yazdı:

Can you provide a sequence of steps to reproduce the problem? (click
on “foo”, open “bar”, “close “bar”, …)



Thanks,

-Alex



From: Serkan Taş

Reply-To: "users@royale.apache.org"

Date: Sunday, November 3, 2019 at 9:46 AM
To: "users@royale.apache.org"

Subject: Tree component not functions correctly



Hi,

Before trying to fix tree in my project I checked the example in
tourdeflex modules. I would like to learn if anyone has checked that
example because I couldn't make it work.

It fails after some and open/close clicks. Some of the menu items
disappear. I want to make it work before focusing on my own
implementation.

Here is the code :


http://ns.adobe.com/mxml/2009";
   xmlns:s="library://ns.apache.org/royale/spark"
   xmlns:mx="library://ns.apache.org/royale/mx"
   paddingBottom="0" paddingTop="0" paddingLeft="0"
paddingRight="0"
   height="100%" width="100%"
   >














 

Re: Tree component not functions correctly

2019-11-06 Thread serkan . tas

Thank you for the info Yishay,

Let me know if I can do anything.

Serkan.


Alıntı Yishay Weiss :

The problem is in  
HierarchicalCollectionView.dispatchAddOrRemoveEvents(). Item is  
removed and index is incremented so the next item to be removed is  
an index too high. I’ll see if I can come up with a safe fix later  
today.



From: Yishay Weiss 
Sent: Wednesday, November 6, 2019 8:12:57 AM
To: users@royale.apache.org 
Subject: RE: Tree component not functions correctly


Never mind, I can reproduce it using the example upthread.




From: Yishay Weiss 
Sent: Wednesday, November 6, 2019 6:49:00 AM
To: users@royale.apache.org 
Subject: RE: Tree component not functions correctly


Hi Serkan,



If you open a bug with a clear test case I’ll have a look at it this week.



Thanks,

Yishay




From: Serkan Taş 
Sent: Wednesday, November 6, 2019 5:50:50 AM
To: users@royale.apache.org 
Subject: Re: Tree component not functions correctly

Alex, I am aware what is going on. I, my self emulated 10s of  
classes last year. I am not a newcomer.


What I am trying to do is, to move one step forward.

My application is highly dependent on tree component. Can not work without.

I worked on code, tried to find out what is wrong with tree component.

As I do not have deep knowledge on framework, i could not move forward.

E.g. altough expand item function  is commented it is not clear why  
still tree is  expended on click. Guess goes with event handling.


If you guide a little I may move further on fw.

Belive me I have lots of things to do on my site after passing fw.

Thanks,
Serkan

Android için Outlook'u edinin




On Wed, Nov 6, 2019 at 12:08 AM +0300, "Alex Harui"  
mailto:aha...@adobe.com>> wrote:



Serkan,



In general that’s true of most components.  We emulate what people  
need.  We don’t have enough committers to do things just-in-case.   
If you tell us what you need, someone will work on it, although it  
is even better if you figure out how to emulate whatever is missing  
yourself.




Royale is not backed by some corporation like Adobe or Apache.  It  
is up to the users to become committers and support and maintain the  
code.




-Alex



From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, November 5, 2019 at 11:11 AM
To: "users@royale.apache.org" 
Subject: Re: Tree component not functions correctly



Alex, when I check Tree control, it is not completely emulated.

Just for info.

4.11.2019 07:40 tarihinde Serkan Taş yazdı:

Sure Alex,

1. Step open the page :

[cid:image001.png@01D593DA.0F4C2620]

2. Open "Outbox"

[cid:image002.png@01D593DA.0F4C2620]

3. Close "Outbox" => "Spam " is missing, "Personal" is shown

[cid:image003.png@01D593DA.0F4C2620]

4. Open "Inbox"

[cid:image004.png@01D593DA.0F4C2620]

5. Close "Inbox" =>  "Product Manager" is shown

[cid:image005.png@01D593DA.0F4C2620]

Thanks,
Serkan

4.11.2019 02:26 tarihinde Alex Harui yazdı:

Can you provide a sequence of steps to reproduce the problem? (click  
on “foo”, open “bar”, “close “bar”, …)




Thanks,

-Alex



From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Sunday, November 3, 2019 at 9:46 AM
To: "users@royale.apache.org"  


Subject: Tree component not functions correctly



Hi,

Before trying to fix tree in my project I checked the example in  
tourdeflex modules. I would like to learn if anyone has checked that  
example because I couldn't make it work.


It fails after some and open/close clicks. Some of the menu items  
disappear. I want to make it work before focusing on my own  
implementation.


Here is the code :


xmlns:fx="http://ns.adobe.com/mxml/2009";

   xmlns:s="library://ns.apache.org/royale/spark"
   xmlns:mx="library://ns.apache.org/royale/mx"
   paddingBottom="0" paddingTop="0" paddingLeft="0"  
paddingRight="0"

   height="100%" width="100%"
   >


























  paddingBottom="10" paddingTop="10" paddingLeft="10"  
paddingRight="10"

  height="100%" width="100%">




labelField="@label"
 showRoot

Re: remoting-config.xml missing error

2019-10-28 Thread serkan . tas



Hi Alex,

Sorry, here are the details :

I updated royale-asjs git repo, and compiled my project with this repo.

I do not have that file in my project : remoting-config.xml


Thanks,
Serkan

Alıntı Alex Harui :

What were you compiling?  How did you get the source (from the repo,  
a source package, etc?


-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Monday, October 28, 2019 at 3:01 AM
To: "users@royale.apache.org" 
Subject: remoting-config.xml missing error

Hi,

After updating the repo, I got the exception below in logs. It does  
not break the compiling process but may someone want to know.


Thanks,
Serkan

remoting-config.xml (Sistem belirtilen dosyayı bulamıyor)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at  
com.google.common.io.Files$FileByteSource.openStream(Files.java:129)
at  
com.google.common.io.Files$FileByteSource.openStream(Files.java:119)
at  
com.google.common.io.ByteSource$AsCharSource.openStream(ByteSource.java:458)

at com.google.common.io.CharSource.readLines(CharSource.java:359)
at com.google.common.io.Files.readLines(Files.java:525)
at  
org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.postProcess(MXMLRoyaleEmitter.java:525)
at  
org.apache.royale.compiler.internal.codegen.mxml.MXMLWriter.writeTo(MXMLWriter.java:73)
at  
org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java:414)
at  
org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.java:265)
at  
org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoyale.java:222)
at  
org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:369)
at  
org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:304)
at  
org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:262)

at org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:244)



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: nested states not handled correctly

2019-10-22 Thread serkan . tas



I'll file the bug asap, after work.

Thanks,
Serkan

Alıntı Alex Harui :

OK, I will try to modify your simpler test case at some point.  Feel  
free to file a bug report with the modified simple test case.  The  
easier you make it for us to debug it, the sooner it will get fixed.


-Alex

On 10/21/19, 11:00 PM, "serkan@likyateknoloji.com"  
 wrote:



Alıntı Alex Harui :

> If you have a simple test case of “inclusion in exclusion” then we
> should look at that.  If the only way to see it is to run your
> actual code that’s fine, but I may not have time to look right away.

The code piece I sent, is a standalone single test case which has
excludeFrom in excludeFrom.
If you replace the inner excludeFrom to includeIn you can see the
behavior quickly.
I replaced in the source below, you can check if you like.

>
> I don’t know how many people have existing code with what I’ll call
> “unnecessary states” in them, so I don’t know how valuable it will
> be to the rest of the Royale folks to have an implementation that is
> fault tolerant.  It might be quick and simple to create a variant of
> the states implementation that is fault tolerant.  I don’t know,
> because I haven’t looked to see what the root problem is.
>
> I would stay with states, and either create that fault tolerant
> version or just clean up the “unnecessary states”.   Cleaning up the
> unnecessary states will make your code more efficient than building
> in fault tolerance.

Do you mean inclusion in exclusion is unnecessary or vice versa ?
Because the real case is not exclusion in exclusion but
inclusion exclusion, the sample is just for test as i mentioned.

If yes, than of course I would like to clean "unnecessary" things in
my project rather than doing unnecessary work.

>
> Also, if you really want a fault tolerant states impl,  it might be
> “cheaper” to see if one of the other committers has time to create
> it for you.

I do not like to waste neither my nor the other guys time for the
things that are not really needed to implement.

Thanks,
Serkan

>
> My 2 cents,
> -Alex
>
> From: Serkan Taş 
> Reply-To: "users@royale.apache.org" 
> Date: Monday, October 21, 2019 at 7:02 PM
> To: "users@royale.apache.org" 
> Subject: Re: nested states not handled correctly
>
> Hi Alex,
> 22.10.2019 00:30 tarihinde Alex Harui yazdı:
> There might still be other bugs, but we have not tried to make the
> code worth with exclusions within exclusions.
> Also bugs in inclusion in exclusion
>
>
> In keeping with the PAYG philosophy, we don’t want to burden the
> States implementation with fault tolerance for such conditions.  You
> are welcome to create a variation of the States implementation with
> that fault tolerance if you want.
>
> My application flow is highly dependent on state implementation, so
> I have simply 3 options :
>
> 1. redesign flow without state implementation
> 2. wait for a time to have the bugs fixed
> 3. try to fix it with my own
>
> I am not sure which one feasible for my case, as I can not go P(AYG
> )without one of them, advises ?
>
>
>
> In your example, if the Form as excludeFrom loggedOutState, then
> there should be no need for the child formItem to also have
> excludeFrom loggedOutState.
>
> Seems like i could  not express my self clearly; This code piece is
> just prepared for those who want to see the bug clearly and simply,
> it is not the real case.
>
> Here is the original :
>  
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1AeLJndyE0SnDgCoSdIjgC6hfgubgFnPj&data=02%7C01%7Caharui%40adobe.com%7C16863b9265ed40e9f4e308d756b521fe%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637073208272463395&sdata=%2BoSgLFxgrdQi73tk3ImWGSttjzQYGLvCZBBFdVevvCk%3D&reserved=0

>
>
> Of course, I could be wrong…
> -Alex
>
>
> Thanks,
> Serkan
>
>
> From: Serkan Taş
> 
> Reply-To: "users@royale.apache.org"
> 
> Date: Monday, October 21, 2019 at 12:09 PM
> To: "users@royale.apache.org"
> 
> Subject: nested states not handled correctly
>
> Hi,
>
> Here is the simple example for test case.
>
> In this ex

Re: nested states not handled correctly

2019-10-21 Thread serkan . tas



Alıntı Alex Harui :

If you have a simple test case of “inclusion in exclusion” then we  
should look at that.  If the only way to see it is to run your  
actual code that’s fine, but I may not have time to look right away.


The code piece I sent, is a standalone single test case which has  
excludeFrom in excludeFrom.
If you replace the inner excludeFrom to includeIn you can see the  
behavior quickly.

I replaced in the source below, you can check if you like.



I don’t know how many people have existing code with what I’ll call  
“unnecessary states” in them, so I don’t know how valuable it will  
be to the rest of the Royale folks to have an implementation that is  
fault tolerant.  It might be quick and simple to create a variant of  
the states implementation that is fault tolerant.  I don’t know,  
because I haven’t looked to see what the root problem is.


I would stay with states, and either create that fault tolerant  
version or just clean up the “unnecessary states”.   Cleaning up the  
unnecessary states will make your code more efficient than building  
in fault tolerance.


Do you mean inclusion in exclusion is unnecessary or vice versa ?  
Because the real case is not exclusion in exclusion but

inclusion exclusion, the sample is just for test as i mentioned.

If yes, than of course I would like to clean "unnecessary" things in  
my project rather than doing unnecessary work.




Also, if you really want a fault tolerant states impl,  it might be  
“cheaper” to see if one of the other committers has time to create  
it for you.


I do not like to waste neither my nor the other guys time for the  
things that are not really needed to implement.


Thanks,
Serkan



My 2 cents,
-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Monday, October 21, 2019 at 7:02 PM
To: "users@royale.apache.org" 
Subject: Re: nested states not handled correctly

Hi Alex,
22.10.2019 00:30 tarihinde Alex Harui yazdı:
There might still be other bugs, but we have not tried to make the  
code worth with exclusions within exclusions.

Also bugs in inclusion in exclusion


In keeping with the PAYG philosophy, we don’t want to burden the  
States implementation with fault tolerance for such conditions.  You  
are welcome to create a variation of the States implementation with  
that fault tolerance if you want.


My application flow is highly dependent on state implementation, so  
I have simply 3 options :


1. redesign flow without state implementation
2. wait for a time to have the bugs fixed
3. try to fix it with my own

I am not sure which one feasible for my case, as I can not go P(AYG  
)without one of them, advises ?




In your example, if the Form as excludeFrom loggedOutState, then  
there should be no need for the child formItem to also have  
excludeFrom loggedOutState.


Seems like i could  not express my self clearly; This code piece is  
just prepared for those who want to see the bug clearly and simply,  
it is not the real case.


Here is the original :  
https://drive.google.com/open?id=1AeLJndyE0SnDgCoSdIjgC6hfgubgFnPj



Of course, I could be wrong…
-Alex


Thanks,
Serkan


From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Monday, October 21, 2019 at 12:09 PM
To: "users@royale.apache.org"  


Subject: nested states not handled correctly

Hi,

Here is the simple example for test case.

In this example;

When you click on the button, the state is switched between two  
states : loggedOutState/loggedInState.


And according to the state definition the form is shows and hides  
according to the state.


The button "nevershown" is never shown because it is excluded from  
both states  loggedOutState/loggedInState.


The one which is strange is the form item "button1". It has the same  
state with the button "nevershown" ,  but behaves like it has no  
excludeFrom tag defined. It behaves similar when you use "includeIn"  
tag.


I am going to debug the code and try to find-out what is wrong, but  
if anybody has any solution and/or idea I highly appreciate.


Thank,
Serkan

Sample test case code


xmlns:fx="http://ns.adobe.com/mxml/2009";

 xmlns:s="library://ns.apache.org/royale/spark"

Re: [ANNOUNCE] Apache Royale 0.9.6 released!

2019-10-09 Thread serkan . tas



Congrats. Piotr and to hole team.

Alıntı Piotr Zarzycki :


The Apache Royale community is pleased to announce the release of Apache
Royale 0.9.6.

The Apache Royale project is the next generation of the Apache Flex SDK. It
lets developers use MXML and ActionScript 3 to generate HTML/JS/CSS
applications which can run natively in browsers. The cross-compiled code
can also run on platforms like Electron or Apache Cordova (Adobe PhoneGap)
to build mobile applications.

This release should be considered ‘beta’ quality, although we’re very close
to a 1.0 release and we have many applications in production at this point.
The purpose of this release is to continue to gather feedback about
Royale’s features and the project’s implementation strategies, and to
recruit new contributors. We hope to grow the code base into an SDK and
tool chain that delivers the highest productivity when developing
applications that can run on many platforms. Beta releases, however, may
not handle all production needs.

Changes in 0.9.6:

Apache Royale Framework 0.9.6:
https://github.com/apache/royale-asjs/blob/apache-royale-0.9.6/RELEASE_NOTES.md
Apache Royale Compiler 0.9.6:
https://github.com/apache/royale-compiler/blob/apache-royale-0.9.6/RELEASE_NOTES.md

Please file bugs at:

https://github.com/apache/royale-asjs/issues

If you happen to know it is a compiler issue, please use:

https://github.com/apache/royale-compiler/issues

For questions about how to use Royale, send email to users@royale.apache.org.
For questions and feedback on the development of the source code in the
release, send email to d...@royale.apache.org.

Apache Royale is available in source and binary form from the Apache
mirrors:

Source:
http://www.apache.org/dyn/closer.lua/royale/0.9.6/apache-royale-0.9.6-src.tar.gz

http://www.apache.org/dyn/closer.lua/royale/0.9.6/apache-royale-0.9.6-src.zip

Binary:
http://www.apache.org/dyn/closer.lua/royale/0.9.6/binaries/apache-royale-0.9.6-bin-js.tar.gz
http://www.apache.org/dyn/closer.lua/royale/0.9.6/binaries/apache-royale-0.9.6-bin-js.zip

Binary with SWF support:
http://www.apache.org/dyn/closer.lua/royale/0.9.6/binaries/apache-royale-0.9.6-bin-js-swf.tar.gz
http://www.apache.org/dyn/closer.lua/royale/0.9.6/binaries/apache-royale-0.9.6-bin-js-swf.zip

When downloading from a mirror site, please remember to verify the
downloads using signatures or MD5 hashes.

The binary packages can also be installed via NPM.

Mac:
  sudo npm install @apache-royale/royale-js -g

Or for SWF Support:
  sudo npm install @apache-royale/royale-js-swf -g

Windows:
  npm install @apache-royale/royale-js -g

Or for SWF Support:
  npm install @apache-royale/royale-js-swf -g

See the README for more information. The language reference (ASDoc) is
here: http://royale.apache.org/asdoc/

Additional documentation is here: https://apache.github.io/royale-docs/

The documentation is still a work in progress. Volunteers are welcome to
help improve it. Visit http://royale.apache.org/ for links to other
resources.

Please try Royale and become involved in shaping the future of application
development.

The Apache Royale Community
--

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
*



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-10-01 Thread serkan . tas

Hi Alex,

I registered to google cloud and created a single virtual machine to  
execute my application. I hope it is going to be ready at the end of  
next week, until I'am not available.


After, I will share the url of the application for your check.

Thanks,
Serkan

Alıntı serkan@likyateknoloji.com:

Ok Alex, I am going to work on finding a server to host my  
application and than let you know.


Thanks,
Serkan

Alıntı Alex Harui :

If you can host a test case on a server, we can try to run it in  
our debuggers and then it doesn’t have to be quite as simple.


-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Monday, September 30, 2019 at 12:27 PM
To: "users@royale.apache.org" 
Subject: Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a  
constructor


Hi Alex,

It is related with TabBar. I am going to work on simplify the case  
for specifically of TabBar.


If we talk about the original problem;

I can use debugger, believe me, for over 20 years I use some kind  
:) Only the language is not js mostly.


Maybe it is better to leave this one for later, because it is very  
complex - advanced grid -  and deeply nested in the layout of my  
project.


Thanks,
Serkan
30.09.2019 19:57 tarihinde Alex Harui yazdı:
Not sure about your latest error.  If the TabBar buttons end up  
being Royale Basic components instead of MXRoyale components you  
will get problems like this, but we’ve also seen that the code was  
already set up like this but some sizing thing didn’t get triggered  
in our tests.


Regarding your original problem, did you try using the debugger as  
I suggested?  Learning how to use the debugger is worth it, IMO.   
Modern cars have fault codes for a reason.  It is far faster and  
cheaper to check a fault code and replace the right part than to  
guess as what part to replace.  Same for a debugger.  It can help  
you find the part to replace with far less guessing.


-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Sunday, September 29, 2019 at 6:27 AM
To: "users@royale.apache.org"  

Subject: Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a  
constructor


As I mentioned in the preceding  mail, I could not solve the error.
I am trying to get deeper by disabling inner components.

Now, I am getting an error

[cid:image001.png@01D577D9.3261B390]

for component

child = mx.controls.listClasses.ListItemRenderer

at the line 2724 of UIComponenet.js that the method is  
"getExplicitOrMeasuredWidth()" undefined.


[cid:image002.png@01D577D9.3261B390]

This may be a misuse or bug ?

Thanks,
Serkan
23.09.2019 12:27 tarihinde Serkan Taş yazdı:
I tried removing "excludeFrom" but failed with the same error Harbs.

Here is the debug view of the step which throws exception :

[cid:image003.png@01D577D9.3261B390]

data array content :
[cid:image004.png@01D577D9.3261B390]

[cid:image005.png@01D577D9.3261B390]
[cid:image006.png@01D577D9.3261B390]

[cid:image007.png@01D577D9.3261B390]
23.09.2019 10:33 tarihinde Harbs yazdı:
A likely cause of the problem is the “excludeFrom” piece.  
Definitely try to narrow that down.


I’ve bumped into issues using “includeIn” in the past, and there’s  
likely still bugs related to states. I generally use state.visible  
instead of includeIn.


HTH,
Harbs

On Sep 23, 2019, at 8:45 AM, Serkan Taş  
mailto:serkan@likyateknoloji.com>>  
wrote:


Thanks Alex, just to be sure, can you see the images attached ?


23.09.2019 08:40 tarihinde Alex Harui yazdı:
You’ll have to catch the exception in the debugger and find out  
what “cls” is supposed to be.  That section of code could be run  
quite often when setting up an MXML-based UI.


The MXMLDataInterpreter is interpreting a data array from some .JS  
file representing an MXML file, and initializeStrandBasedObject is  
trying to initialize some component and probably calls  
generateMXMLObject to create some object that initializes some  
property.  You’ll have to figure out what was in the data arrays  
and what went wrong.  You should find that generateMXMLObject is  
passed a data array that is part of a different array passed to  
initializedStrandBasedObject.  Knowing what class that  
strandBasedObject is may help you figure out what part of what MXML  
is having a problem.


HTH,
-Alex



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir.  
Sadece yukarıda isimleri belirtilen kişiler arasında özel haberleşme  
amacını taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik  
postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve  
kullanmanız kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve  
sisteminizden siliniz

Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a constructor

2019-09-30 Thread serkan . tas



Ok Alex, I am going to work on finding a server to host my application  
and than let you know.


Thanks,
Serkan

Alıntı Alex Harui :

If you can host a test case on a server, we can try to run it in our  
debuggers and then it doesn’t have to be quite as simple.


-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Monday, September 30, 2019 at 12:27 PM
To: "users@royale.apache.org" 
Subject: Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a  
constructor


Hi Alex,

It is related with TabBar. I am going to work on simplify the case  
for specifically of TabBar.


If we talk about the original problem;

I can use debugger, believe me, for over 20 years I use some kind :)  
Only the language is not js mostly.


Maybe it is better to leave this one for later, because it is very  
complex - advanced grid -  and deeply nested in the layout of my  
project.


Thanks,
Serkan
30.09.2019 19:57 tarihinde Alex Harui yazdı:
Not sure about your latest error.  If the TabBar buttons end up  
being Royale Basic components instead of MXRoyale components you  
will get problems like this, but we’ve also seen that the code was  
already set up like this but some sizing thing didn’t get triggered  
in our tests.


Regarding your original problem, did you try using the debugger as I  
suggested?  Learning how to use the debugger is worth it, IMO.   
Modern cars have fault codes for a reason.  It is far faster and  
cheaper to check a fault code and replace the right part than to  
guess as what part to replace.  Same for a debugger.  It can help  
you find the part to replace with far less guessing.


-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Sunday, September 29, 2019 at 6:27 AM
To: "users@royale.apache.org"  

Subject: Re: EventDispatcher.js:73 Uncaught TypeError: cls is not a  
constructor


As I mentioned in the preceding  mail, I could not solve the error.
I am trying to get deeper by disabling inner components.

Now, I am getting an error

[cid:image001.png@01D577D9.3261B390]

for component

child = mx.controls.listClasses.ListItemRenderer

at the line 2724 of UIComponenet.js that the method is  
"getExplicitOrMeasuredWidth()" undefined.


[cid:image002.png@01D577D9.3261B390]

This may be a misuse or bug ?

Thanks,
Serkan
23.09.2019 12:27 tarihinde Serkan Taş yazdı:
I tried removing "excludeFrom" but failed with the same error Harbs.

Here is the debug view of the step which throws exception :

[cid:image003.png@01D577D9.3261B390]

data array content :
[cid:image004.png@01D577D9.3261B390]

[cid:image005.png@01D577D9.3261B390]
[cid:image006.png@01D577D9.3261B390]

[cid:image007.png@01D577D9.3261B390]
23.09.2019 10:33 tarihinde Harbs yazdı:
A likely cause of the problem is the “excludeFrom” piece. Definitely  
try to narrow that down.


I’ve bumped into issues using “includeIn” in the past, and there’s  
likely still bugs related to states. I generally use state.visible  
instead of includeIn.


HTH,
Harbs

On Sep 23, 2019, at 8:45 AM, Serkan Taş  
mailto:serkan@likyateknoloji.com>>  
wrote:


Thanks Alex, just to be sure, can you see the images attached ?


23.09.2019 08:40 tarihinde Alex Harui yazdı:
You’ll have to catch the exception in the debugger and find out what  
“cls” is supposed to be.  That section of code could be run quite  
often when setting up an MXML-based UI.


The MXMLDataInterpreter is interpreting a data array from some .JS  
file representing an MXML file, and initializeStrandBasedObject is  
trying to initialize some component and probably calls  
generateMXMLObject to create some object that initializes some  
property.  You’ll have to figure out what was in the data arrays and  
what went wrong.  You should find that generateMXMLObject is passed  
a data array that is part of a different array passed to  
initializedStrandBasedObject.  Knowing what class that  
strandBasedObject is may help you figure out what part of what MXML  
is having a problem.


HTH,
-Alex



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwardi

Re: Work on Emulation

2019-04-29 Thread serkan . tas

Hi Alex,

I prepared a simple test case and created a bug with the url attached  
containing the related files.


https://github.com/apache/royale-asjs/issues/419

Thanks,
Serkan


Alıntı Alex Harui :

File a bug an attach _Super_UserOps.js and _Super_UserOps.as and  
UserOps.js and UserOps.as


Thanks,
-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Wednesday, April 24, 2019 at 8:52 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi Alex,

I am still working on the issue which is related with third party  
library that we have discussed months ago.


I am not sure how to get rid of the error below, may be anyone on  
the list have an idea.


I am getting error below on chrome console:

[cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com]

Here is the _Super_UserOps.as source piece which couses the error :

model_internal::initialize();

converted to _Super_UserOps.js :

com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this,  
'http://www.adobe.com/2008/flex/model/internal::initialize')();



content of the file model_internal.as :

package com.adobe.fiber.core
{
   public namespace model_internal =  
"http://www.adobe.com/2008/flex/model/internal";;

}


Ant the class piece which initialize the fault and and result  
functions that is the parent class of _Super_UserOps.as :


  model_internal function initialize() : void
  {
  
this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents);
  
this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents);

  }

Any help kindly appreciated,
Thanks
Serkan
13.04.2019 00:34 tarihinde Alex Harui yazdı:

Hi Serkan,



Does it call the faultHandler instead?  If so, there should be an  
error message in the fault event.




What kind of service is UserOps?  I would set breakpoints and debug  
to make sure it actually sent something (and maybe use a network  
monitor to see what was sent and to where).  And then verify that  
the code that finally sends (maybe via XmlHTTPRequest) also set up  
listeners for events and set breakpoints on those low-level event  
handlers.




You can also use the network monitor against the Flex app and  
compare what is being sent to what Royale is sending.




HTH,

-Alex



On 4/12/19, 2:25 PM, "Serkan Taş"  
  
wrote:




Hi Alex,



I have service call in my project.







Normally, I expect to call the result method

userOpsService_resultHandler for successfull operations, but it does not.



Which way I should go through to find out what is going on after calling

the service ?



Thanks,

Serkan



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: Work on Emulation

2019-04-24 Thread serkan . tas

Thanks Alex, I am goint to file the bug after work.

Can you suggest a workaround until the bug fixed ?

Alıntı Alex Harui :

File a bug an attach _Super_UserOps.js and _Super_UserOps.as and  
UserOps.js and UserOps.as


Thanks,
-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Wednesday, April 24, 2019 at 8:52 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi Alex,

I am still working on the issue which is related with third party  
library that we have discussed months ago.


I am not sure how to get rid of the error below, may be anyone on  
the list have an idea.


I am getting error below on chrome console:

[cid:part1.A0FA08BF.A86FA54D@likyateknoloji.com]

Here is the _Super_UserOps.as source piece which couses the error :

model_internal::initialize();

converted to _Super_UserOps.js :

com.adobe.fiber.core.model_internal.org.apache.royale.utils.Language.closure(this.http_$$www_adobe_com$2008$flex$model$internal__initialize, this,  
'http://www.adobe.com/2008/flex/model/internal::initialize')();



content of the file model_internal.as :

package com.adobe.fiber.core
{
   public namespace model_internal =  
"http://www.adobe.com/2008/flex/model/internal";;

}


Ant the class piece which initialize the fault and and result  
functions that is the parent class of _Super_UserOps.as :


  model_internal function initialize() : void
  {
  
this.serviceControl.addEventListener(ResultEvent.RESULT,model_internal::propagateEvents);
  
this.serviceControl.addEventListener(FaultEvent.FAULT,model_internal::propagateEvents);

  }

Any help kindly appreciated,
Thanks
Serkan
13.04.2019 00:34 tarihinde Alex Harui yazdı:

Hi Serkan,



Does it call the faultHandler instead?  If so, there should be an  
error message in the fault event.




What kind of service is UserOps?  I would set breakpoints and debug  
to make sure it actually sent something (and maybe use a network  
monitor to see what was sent and to where).  And then verify that  
the code that finally sends (maybe via XmlHTTPRequest) also set up  
listeners for events and set breakpoints on those low-level event  
handlers.




You can also use the network monitor against the Flex app and  
compare what is being sent to what Royale is sending.




HTH,

-Alex



On 4/12/19, 2:25 PM, "Serkan Taş"  
  
wrote:




Hi Alex,



I have service call in my project.







Normally, I expect to call the result method

userOpsService_resultHandler for successfull operations, but it does not.



Which way I should go through to find out what is going on after calling

the service ?



Thanks,

Serkan



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: Work on Emulation

2019-02-25 Thread serkan . tas



Do yoyu mean the method in URLoader class ?

Alıntı Alex Harui :


If you step into dispatchEvent, where does it go?

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Sunday, February 24, 2019 at 11:49 AM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi Alex,

After overriding the method in HTTPService, I watched that it is not called.

according to the code below,

loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult);

the method httpResult is called so the changes I made had no effect.

Thanks,
Serkan
14.02.2019 23:08 tarihinde Alex Harui yazdı:
I don’t think we have an example to reference.

It should be something like:

Override public function dispatchEvent(event:Event):Boolean
{
   If (event.type == “httpStatus”)
  {
Var newEvent:HTTPStatusEvent = new HTTPStatusEvent(…)
// assign other properties If needed
   Super.dispatchEvent(newEvent);
  }
}

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Thursday, February 14, 2019 at 11:54 AM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation

Are there any similar implementation that you may advice me to check  
as sample ?

14.02.2019 22:36 tarihinde Alex Harui yazdı:
So the progressHandler in URLLoader is dispatching a ValueEvent, not  
the HTTPStatusEvent you want.  The emulation HTTPService should  
override what gets dispatched.  You could override dispatchEvent and  
dispatch the right thing.


HTH,
-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Thursday, February 14, 2019 at 11:30 AM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation

Found it :
[cid:part1.364CE0CC.0B2C681F@likyateknoloji.com]
14.02.2019 22:28 tarihinde Serkan Taş yazdı:
Alex,

I am not sure that I know how to capture call stack in Firefox Dev Edition.

Thanks,
Serkan
14.02.2019 22:23 tarihinde Alex Harui yazdı:
In Royale in the browser, some events aren’t what you think they  
are.  If you listen for a org.apache.royale.events.MouseEvent, the  
browser dispatches a browser MouseEvent and Royale runs code to  
catch that and convert it to org.apache.royale.events.MouseEvent.


I suspect that the browser is sending its low-level event and Royale  
code needs to be added to convert it to a Royale HTTPStatusEvent.   
That’s why I suggested checking the call stack as it might be  
possible to copy the MouseEventConverter patterns to do the  
conversion.


HTH,
-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Thursday, February 14, 2019 at 11:14 AM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation

Hi Alex,
13.02.2019 01:50 tarihinde Alex Harui yazdı:
Hi Serkan,

In the emulation components, you may have to catch certain events  
and redispatch them with the appropriate type.  In the event handler  
that calls Alert, what is the type of the event parameter.  Is it an  
HTTPStatusEvent or a browser event?

Here is the registration :

loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpResult);

It is registered as HTTPStatusEvent. And the handler has the signature :

private function httpResult(event:HTTPStatusEvent):void






If it is an HTTPStatusEvent, then the emulation may be as simple as  
adding a “status” getter that returns the event’s value property.


As it is HTTPStatusEvent, than it will be enough to implement your  
advice to the JS section of the code. But when I check the code,  
there is getter for status :


COMPILE::JS
public class HTTPStatusEvent extends org.apache.royale.events.Event
{
/*  include "../core/Version.as"; */
public static const HTTP_STATUS:String = "httpStatus";
private var m_status:int;

 
//--

//
//  Class constants
//
 
//--



 
//--

//
//  Constructor
//
 
//--


/**
 *  Constructor.
 *
 *  @param type The event type; indicates the action that  
caused the event.

 *
 *  @param bubbles Specifies whether the event can bubble
 *  up the display list hierarchy.
 *
 *  @param cancelable Specifies whether the behavior
 *  associat

Re: Work on Emulation

2019-02-04 Thread serkan . tas



I am going to check if it is valid or not, but I am sure that it is  
working with flex version.


Thanks,
Serkan

Alıntı Alex Harui :


Is contentData valid XML?

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Thursday, January 31, 2019 at 12:08 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation


 Hi,

After pressing login button I am getting the error below:

[cid:part1.9142D64E.89437FAE@likyateknoloji.com]

I guess, the response handler can not handle the response string =>  
"1.0.0;Windows 10;STATE_WORKING"


Here is the part of the js that makes the request (URLLoader.js:88-93):

 if (contentData) {
element.send(contentData);
  } else {
element.send();
  }
  this.dispatchEvent(new org.apache.royale.events.Event("postSend"));

The "element" is type XMLHttpRequest and I can not debug that object.

Thanks,
Serkan



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: Work on Emulation

2019-01-13 Thread serkan . tas



I drilled in to the DirectChannel apply method and saw the same  
picture that all the values are as expected. I am going to prepare the  
case and the screenshot later today.


Thanks,
Serkan

Alinti Alex Harui 

I think there is a good chance that that AbstractOperation doesn't  
work (or the AbstractInvoker it calls isn't working).  I would  
recommend that you debug in that area first.


-Alex

On 1/13/19, 8:36 PM, "serkan@likyateknoloji.com"  
 wrote:


Sure not Alex,

I am going through my application workflow.

If you need to know, than I may prepare an application to see if  
it is or not.


I think you are wondering about the emulated classes causing the issue.

Thanks,
Serkan

Alinti Alex Harui 

> Hi Serkan,
>
> Have you seen AbstractOperation (for HTTP) work without XML?
>
> -Alex
>
> From: Serkan Taş 
> Reply-To: "users@royale.apache.org" 
> Date: Sunday, January 13, 2019 at 11:01 AM
> To: "users@royale.apache.org" 
> Subject: Re: Work on Emulation
>
> Hi Alex,
>
> Adding the part below worked for text conversion.
>
> if (ctype == CONTENT_TYPE_XML)
> {
> paramsToSend = parameters.toXMLString();
>
> I am not sure but I guess this time the data is not sent to the
> server side. I debugged the code and see that it is all set.
>
> Here is the capture of the debug, you can see the watch expression
> and the parameters which are all correct.
>
> [cid:part1.6700F27F.BB28F758@likyateknoloji.com]
>
>
> 13.01.2019 14:35 tarihinde Serkan Taş yazdı:
> Hi Alex,
>
> parameters is XML. It is the return of
>
> XML.conversion("username=" +
>  
com.likya.pinara.model.ModelLocator.getInstance().currentUser.username);

>
> Yes the request use POST. I am going to try toXMLString.
>
> Thanks,
> Serkan
>
> 13.01.2019 10:01 tarihinde Alex Harui yazdı:
> Hi Serkan,
>
> What is parameters?  Isn’t it XML or an Array with one XML element?
> If so, “as String” will return null since neither XML or Array is a
> String.  I think the commented code calls toXMLString on an XML
> instance,  I think that’s what you want to do.  I think the code
> also switches to POST as well.
>
> HTH,
> -Alex


--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
 
https://na01.safelinks.protection.outlook.com/?url=www.likyateknoloji.com&data=02%7C01%7Caharui%40adobe.com%7Cf63c32d6d50541ee5e4708d679d9e4db%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636830374110739512&sdata=gD5MNvTJP%2FrA5DjVt3RFnfHzZHRLOCvb9%2BM1o%2BkKOqQ%3D&reserved=0


--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul
etmez.

This electronic mail and any files transmitted with it are intended
for the private use of  the persons named above. If you received this
message in error, forwarding, copying or use of any of the information
is strictly prohibited. Please immediately notify the sender and
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.
Ltd. Şti. does not accept legal responsibility for the contents of
this message.
--



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: Work on Emulation

2019-01-13 Thread serkan . tas

Sure not Alex,

I am going through my application workflow.

If you need to know, than I may prepare an application to see if it is or not.

I think you are wondering about the emulated classes causing the issue.

Thanks,
Serkan

Alinti Alex Harui 


Hi Serkan,

Have you seen AbstractOperation (for HTTP) work without XML?

-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Sunday, January 13, 2019 at 11:01 AM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi Alex,

Adding the part below worked for text conversion.

if (ctype == CONTENT_TYPE_XML)
{
paramsToSend = parameters.toXMLString();

I am not sure but I guess this time the data is not sent to the  
server side. I debugged the code and see that it is all set.


Here is the capture of the debug, you can see the watch expression  
and the parameters which are all correct.


[cid:part1.6700F27F.BB28F758@likyateknoloji.com]


13.01.2019 14:35 tarihinde Serkan Taş yazdı:
Hi Alex,

parameters is XML. It is the return of

XML.conversion("username=" +  
com.likya.pinara.model.ModelLocator.getInstance().currentUser.username);


Yes the request use POST. I am going to try toXMLString.

Thanks,
Serkan

13.01.2019 10:01 tarihinde Alex Harui yazdı:
Hi Serkan,

What is parameters?  Isn’t it XML or an Array with one XML element?   
If so, “as String” will return null since neither XML or Array is a  
String.  I think the commented code calls toXMLString on an XML  
instance,  I think that’s what you want to do.  I think the code  
also switches to POST as well.


HTH,
-Alex



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: Work on Emulation

2019-01-10 Thread serkan . tas



Alinti Alex Harui 

Congratulations on getting that far.  Are you still having the issue  
with states and the login form looking wrong?


Thank you Alex. But I am still having the issue and may open a bug on  
github, can you check my previous mail which has the details and the  
sample code  ?




In order to help with what to do for CONTENT_TYPE_XML, can you tell  
us what you want to have happen?  From the code, it looks like it  
should POST the XML as a string.  If that’s true, then just run the  
last part that calls toXMLString() and see if that works.  If not,  
compare that string with what you do want and we try to help figure  
out what else needs to be changed.  That part is commented out  
mainly because there were conditions in there that required  
XMLDocument and we didn’t want to get into emulating that right now.


As emulated the the class, I remeber its complexity for implementing  
XMLDocument.


I think just passing the xml as string to the rest call may solve my  
issue. I will try and let you know.


Thanks,
Serkan


-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Thursday, January 10, 2019 at 2:58 AM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi all,

At last, I am able to display the login window and authenticate my  
application through backend server.


After from here, I have to implement the missing part of the method  
sendBody in mx.rpc.http.AbstractOperation class.


The part;

if (ctype == CONTENT_TYPE_XML)

is all commented-out and is related with http post with XML content.

Any help kindly appreciated.

Thanks,
Serkan



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: compiler is broken

2018-12-20 Thread serkan . tas



Hi Alex,

I gave you the name and all content of the batch file, nothing more  
and I use ant without target, do you want me to look in to build.xml  
and choose a target ?


name of file : .\royale-asjs-ant.bat

All the the things inside :

*
set PLAYERGLOBAL_HOME=D:/dev/royale-emulation-works/emulatedcomps
set FLEX_HOME=D:/dev/Adobe/flex_sdk_4.6
set GOOG_HOME=D:/dev/royale-emulation-works/closure-library-20180910
set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 -Duser.country=EN  
-Duser.language=en

(cd ..\github\royale-asjs && ant)
*

I use batch to set env vars like JAVA_TOOL. No other third party  
cleaning or maven.


If you have any more questions, let me know.

Thanks,
Serkan


Alinti Alex Harui 


Serkan,

It appears you are still using a batch file, and I cannot know what  
is in it, but earlier I explained that if you don’t run a  
super-clean or thirdparty-clean target and place a working flexunit  
zip file in the “in” folder, then the other ant targets should run  
without trying to download flexunit again.  That is how it works for  
the rest of us.


Look in the console output.  If you see thirdparty-clean running,  
then you are still calling the wrong ant targets.


-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Thursday, December 20, 2018 at 12:48 PM
To: "users@royale.apache.org" 
Subject: Re: compiler is broken

I tried in all tree folders but royale-asjs fails with download error

batch file :

 .\royale-asjs-ant.bat
set PLAYERGLOBAL_HOME=D:/dev/royale-emulation-works/emulatedcomps
set FLEX_HOME=D:/dev/Adobe/flex_sdk_4.6
set GOOG_HOME=D:/dev/royale-emulation-works/closure-library-20180910
set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 -Duser.country=EN  
-Duser.language=en

(cd ..\github\royale-asjs   && ant)

result :


download_using_get:

double-check-file:
 [echo] Need file: ${still_no_file}

get-from-cache-if-needed:
[unzip] Expanding:  
D:\dev\royale-emulation-works\github\royale-asjs\in\apache-flex-flexunit-4.2.0-4.12.0-bin.zip into  
D:\dev\royale-emulation-works\github\royale-asjs\in\flexunit


BUILD FAILED
D:\dev\royale-emulation-works\github\royale-asjs\build.xml:193: The  
following error occurred while executing this line:
D:\dev\royale-emulation-works\github\royale-asjs\frameworks\build.xml:106:  
The following error occurred while executing this line:
D:\dev\royale-emulation-works\github\royale-asjs\frameworks\downloads.xml:110: Error while expanding  
D:\dev\royale-emulation-works\github\royale-asjs\in\apache-flex-flexunit-4.2.0-4.12.0-bin.zip

java.util.zip.ZipException: archive is not a ZIP archive
at  
org.apache.tools.zip.ZipFile.positionAtEndOfCentralDirectoryRecord(ZipFile.java:775)
at  
org.apache.tools.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:711)
at  
org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:456)

at org.apache.tools.zip.ZipFile.(ZipFile.java:216)
at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:190)
at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:157)
at  
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)
at  
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)

at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at  
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
at  
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)

at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at  
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)

at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)
at  
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)

at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at  
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
at  
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)

at org.apache.tools.ant.Project

Re: Work on Emulation

2018-12-19 Thread serkan . tas



ResourceManagerTest does not use any locale resource.

Alinti Alex Harui 

There is an example in manualtests/ResourceManagerTest.  See if it  
is still working or not.


-Alex

On 12/18/18, 11:41 PM, "serkan@likyateknoloji.com"  
 wrote:



Alinti Serkan Taş 

> When debug the code,
>
> I see that the local is not initialized.
>
> For tha AS source, the "getString" method is called with only two
> parameters :
>
> resourceManager.getString('messages', 'userName')
>
> and the js file function is called with null locale, but I think it
> should be called with some default locale info:
>
> mx.resources.ResourceManagerImpl.prototype.getString =
> function(bundleName, resourceName, parameters, *locale*) {
>   parameters = typeof parameters !== 'undefined' ? parameters : null;
>   locale = typeof locale !== 'undefined' ? locale : null;
>   var /** @type {mx.resources.IResourceBundle} */ resourceBundle =
> this.mx_resources_ResourceManagerImpl_findBundle(bundleName,
> resourceName, locale);
>   if (!resourceBundle)
> return null;
>   if (!(resourceName in resourceBundle.content))
> return null;
>   var /** @type {string} */ value =
> String(resourceBundle.content[resourceName]);
>   if (parameters)
> value = mx.utils.StringUtil.substitute(value, parameters);
>   return value;
> };
>
>
> I guess the default locale is not set during function call and/or
> the locale string resources - messages.properties - are not included
> in the build process so does not exist in hjs output folder.
>
> May you provide me example if any for reference of localization, in
> case I may be using in wrong way ?
>
> Thanks,
> Serkan
>
> 18.12.2018 01:28 tarihinde Alex Harui yazdı:
>>
>> Hi Serkan
>>
>> I’m not surprised that the Royale SWF does not run.  I haven’t
>> spent any time ensuring that it does.  The JS version compiled with
>> 0 errors.  What happens when you run the JS version?
>>
>> -Alex
>>
>> *From: *Serkan Taş 
>> *Reply-To: *"users@royale.apache.org" 
>> *Date: *Monday, December 17, 2018 at 12:44 PM
>> *To: *"users@royale.apache.org" 
>> *Subject: *Re: Work on Emulation
>>
>> Hi Alex,
>>
>> I created the application and compiled with FB :
>>
>> 
>> xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7C2bfbe19128b04b59b6a608d66585737e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636808021185490269&sdata=s55f9DuRYH4nCMH2hj0%2B1alR7ALf4oorvK1%2FQxNxbn4%3D&reserved=0";
>>  


>> xmlns:s="library://ns.adobe.com/flex/spark"
>>xmlns:mx="library://ns.adobe.com/flex/mx"
>> minWidth="955" minHeight="600">
>>
>> 
>> [ResourceBundle("messages")]
>> 
>>
>> 
>> 
>> 
>>
>> 
>> > paddingLeft="10" paddingTop="10" paddingBottom="20" />
>> 
>>
>> > label="{resourceManager.getString('messages', 'userName')}" />
>> 
>>
>> 
>>
>>
>>
>> It is working and requires the libraries :
>> framework_4.6.0.23201.swf
>> spark_4.6.0.23201.swf
>> textLayout_2.0.0.232.swf
>>
>> cid:part1.C31B02F0.B706B23D@likyateknoloji.com
>>
>>
>> This file is for royale :
>>
>> 
>> xmlns:fx="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7C2bfbe19128b04b59b6a608d66585737e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636808021185490269&sdata=s55f9DuRYH4nCMH2hj0%2B1alR7ALf4oorvK1%2FQxNxbn4%3D&reserved=0";
>>  


>>  xmlns:s="library://ns.apache.org/royale/spark"
>>  xmlns:mx="library://ns.apache.org/royale/mx"
>>  xmlns:comps="com.likya.pinara.comps.*"
>>  width="100%">
>>
>> 
>> [ResourceBundle("messages")]
>> 
>>
>> 
>> 
>> 
>>
>> 
>>
>> 
>>
>> 
>> > paddingLeft="10" paddingTop="10" paddingBottom="20" />
>> 
>>
>> > label="{resourceManager.getString('messages', 'userName')

Re: Work on Emulation

2018-12-18 Thread serkan . tas



Alinti Serkan Taş 


When debug the code,

I see that the local is not initialized.

For tha AS source, the "getString" method is called with only two  
parameters :


resourceManager.getString('messages', 'userName')

and the js file function is called with null locale, but I think it  
should be called with some default locale info:


mx.resources.ResourceManagerImpl.prototype.getString =  
function(bundleName, resourceName, parameters, *locale*) {

  parameters = typeof parameters !== 'undefined' ? parameters : null;
  locale = typeof locale !== 'undefined' ? locale : null;
  var /** @type {mx.resources.IResourceBundle} */ resourceBundle =  
this.mx_resources_ResourceManagerImpl_findBundle(bundleName,  
resourceName, locale);

  if (!resourceBundle)
    return null;
  if (!(resourceName in resourceBundle.content))
    return null;
  var /** @type {string} */ value =  
String(resourceBundle.content[resourceName]);

  if (parameters)
    value = mx.utils.StringUtil.substitute(value, parameters);
  return value;
};


I guess the default locale is not set during function call and/or  
the locale string resources - messages.properties - are not included  
in the build process so does not exist in hjs output folder.


May you provide me example if any for reference of localization, in  
case I may be using in wrong way ?


Thanks,
Serkan

18.12.2018 01:28 tarihinde Alex Harui yazdı:


Hi Serkan

I’m not surprised that the Royale SWF does not run.  I haven’t  
spent any time ensuring that it does.  The JS version compiled with  
0 errors.  What happens when you run the JS version?


-Alex

*From: *Serkan Taş 
*Reply-To: *"users@royale.apache.org" 
*Date: *Monday, December 17, 2018 at 12:44 PM
*To: *"users@royale.apache.org" 
*Subject: *Re: Work on Emulation

Hi Alex,

I created the application and compiled with FB :


http://ns.adobe.com/mxml/2009";  
                 
xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"  
minWidth="955" minHeight="600">


    
        [ResourceBundle("messages")]
    

    
        

    

    
        paddingLeft="10" paddingTop="10" paddingBottom="20" />

    

    label="{resourceManager.getString('messages', 'userName')}" />

    





It is working and requires the libraries :
framework_4.6.0.23201.swf
spark_4.6.0.23201.swf
textLayout_2.0.0.232.swf

cid:part1.C31B02F0.B706B23D@likyateknoloji.com


This file is for royale :


http://ns.adobe.com/mxml/2009";  


         xmlns:s="library://ns.apache.org/royale/spark"
         xmlns:mx="library://ns.apache.org/royale/mx"
         xmlns:comps="com.likya.pinara.comps.*"
         width="100%">

    
        [ResourceBundle("messages")]
    

    
        
    

    

    

    
        paddingLeft="10" paddingTop="10" paddingBottom="20" />

    

    label="{resourceManager.getString('messages', 'userName')}" />

    



When compile with royale it gets the message with flash player :

cid:part2.1B6AE46D.758D0112@likyateknoloji.com

And the build output :

end of list of source files
Dec 17, 2018 11:41:40 PM  
com.google.javascript.jscomp.LoggerErrorManager println
WARNING:  
D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/controls/listClasses/VirtualDataItemRendererFactoryForICollectionViewData.js:144: WARNING - Variable referenced before declaration:  
dataGroup
  ir =  
org.apache.royale.utils.Language.as(this.itemRendererFactory.createItemRenderer(dataGroup),  
org.apache.royale.core.ISelectableItemRenderer);

^

Dec 17, 2018 11:41:40 PM  
com.google.javascript.jscomp.LoggerErrorManager println
WARNING: WARNING - Failed to resolve sourcemap:  
D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/controls/listClasses/VirtualDataItemRendererFactoryForICollectionViewData.js.map


Dec 17, 2018 11:41:40 PM  
com.google.javascript.jscomp.LoggerErrorManager println
WARNING:  
D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/managers/SystemManager.js:196: WARNING - unreachable  
code

  return null;
  

Dec 17, 2018 11:41:40 PM  
com.google.javascript.jscomp.LoggerErrorManager println
WARNING: WARNING - Failed to resolve sourcemap:  
D:/dev/royale-emulation-works/github/royale-testing/src/main/bin/js-debug/mx/managers/SystemManager.js.map


Dec 17, 2018 11:41:40 PM  
com.google.javascript.jscomp.LoggerErrorManage

Re: Work on Emulation

2018-12-16 Thread serkan . tas

Alex,

I do not want you to do anything if you do not want !

I am just trying to make it clear for me what you mean. Thats all.

Thanks,
Serkan


Alinti Alex Harui 


Serkan,

 You posted an example about Resources claiming it didn't work in  
Royale.  I don't think that example would work in Flex.  I'm not  
going to investigate why your example doesn't work in Royale until  
your prove that it did work in Flex.


Thanks,
-Alex

On 12/16/18, 9:43 PM, "serkan@likyateknoloji.com"  
 wrote:



Hi Alex,

I am a little bit confused.

When I compile my project with mxmlc, i think that both swf and js
output is generated and the generated swf is compatible with flash
player.

If this approach is not wrong;

I prepeared the sample project for royale. Why do i need to compile
with flex ?

Thanks,
Serkan

Alinti Alex Harui 

> Did you use the Flex compiler or the Royale compiler with the Flex
> libraries.  Make sure you have a test case that doesn’t involve
> Royale at all, get it to work, and then see what Royale does.
>
> Thanks,
> -Alex
>
> From: Serkan Taş 
> Reply-To: "users@royale.apache.org" 
> Date: Sunday, December 16, 2018 at 11:42 AM
> To: "users@royale.apache.org" 
> Subject: Re: Work on Emulation
>
> Did not get any compile errors, but some warnings.
>
> I tried in flex better it did not work either. Used the flash player
> and result is :
>
> ReferenceError: Error #1065: Variable FindBug_Styles is not defined.
> at flash.system::ApplicationDomain/getDefinition()
> at org.apache.royale.core::SimpleCSSValuesImpl/init()
> at spark.components::Application/set valuesImpl()
> at spark.components::Application()
> at main::FindBug()
> at _main_FindBug_mx_managers_SystemManager/create()
> at mx.managers::SystemManager/initializeTopLevelWindow()
> at mx.managers::SystemManager/kickOff()
> at mx.managers::SystemManager/docFrameHandler()
> at flash.display::MovieClip/nextFrame()
>
> Thanks,
> Serkan
> 16.12.2018 10:10 tarihinde Alex Harui yazdı:
> Were there any compile errors or warnings related to the resources?
>
> Don’t you need [ResourceBundle] metadata for this to work?  Did you
> try it in Flex first to make sure you have a valid test case?
>
> -Alex
>
> From: Serkan Taş
> 
> Reply-To: "users@royale.apache.org"
> 
> Date: Saturday, December 15, 2018 at 10:24 PM
> To: "users@royale.apache.org"
> 
> Subject: Re: Work on Emulation
>
> Hi,
>
> I modified the js file and passed over the exception by checking
> parent for null.
>
> After, I prepared a sample project. I guess I can not get labels
> from resources.
>
> Here is refs:
>
> Project files JS:
>  
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1oF7OIXuGTfLvqM8mtWGSaKiT8C6lQhb5&data=02%7C01%7Caharui%40adobe.com%7C863839b5425444fd32c308d663e29f9e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636806222363061652&sdata=iZ7U83tQ70EWD2hgH6ScoCqAU645rmy0WGRD30vuUF4%3D&reserved=0

>
> Project files swf:
>  
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D1IlrSrLIuryRhVfSZDhpHPCIXM1dH56Y2&data=02%7C01%7Caharui%40adobe.com%7C863839b5425444fd32c308d663e29f9e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636806222363061652&sdata=fRnNANsDEZXqNlWdMUAthlLwGa39mYvHXkwv0Wnx0vM%3D&reserved=0

>
> Sources :
>  
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnihavend%2Froyale-testing&data=02%7C01%7Caharui%40adobe.com%7C863839b5425444fd32c308d663e29f9e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636806222363061652&sdata=5VqnvdtqR3MiyDwrdTo9UxdFOQsQxz2YwA6i%2FPXbTqk%3D&reserved=0

Re: Work on Emulation

2018-12-16 Thread serkan . tas



Hi Alex,

I am a little bit confused.

When I compile my project with mxmlc, i think that both swf and js  
output is generated and the generated swf is compatible with flash  
player.


If this approach is not wrong;

I prepeared the sample project for royale. Why do i need to compile  
with flex ?


Thanks,
Serkan

Alinti Alex Harui 

Did you use the Flex compiler or the Royale compiler with the Flex  
libraries.  Make sure you have a test case that doesn’t involve  
Royale at all, get it to work, and then see what Royale does.


Thanks,
-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Sunday, December 16, 2018 at 11:42 AM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Did not get any compile errors, but some warnings.

I tried in flex better it did not work either. Used the flash player  
and result is :


ReferenceError: Error #1065: Variable FindBug_Styles is not defined.
at flash.system::ApplicationDomain/getDefinition()
at org.apache.royale.core::SimpleCSSValuesImpl/init()
at spark.components::Application/set valuesImpl()
at spark.components::Application()
at main::FindBug()
at _main_FindBug_mx_managers_SystemManager/create()
at mx.managers::SystemManager/initializeTopLevelWindow()
at mx.managers::SystemManager/kickOff()
at mx.managers::SystemManager/docFrameHandler()
at flash.display::MovieClip/nextFrame()

Thanks,
Serkan
16.12.2018 10:10 tarihinde Alex Harui yazdı:
Were there any compile errors or warnings related to the resources?

Don’t you need [ResourceBundle] metadata for this to work?  Did you  
try it in Flex first to make sure you have a valid test case?


-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Saturday, December 15, 2018 at 10:24 PM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation

Hi,

I modified the js file and passed over the exception by checking  
parent for null.


After, I prepared a sample project. I guess I can not get labels  
from resources.


Here is refs:

Project files JS:  
https://drive.google.com/open?id=1oF7OIXuGTfLvqM8mtWGSaKiT8C6lQhb5


Project files swf:   
https://drive.google.com/open?id=1IlrSrLIuryRhVfSZDhpHPCIXM1dH56Y2


Sources :  
https://github.com/nihavend/royale-testing


Thanks,
Serkan


11.12.2018 01:25 tarihinde Alex Harui yazdı:


From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Monday, December 10, 2018 at 12:15 PM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation

Hi Alex,
10.12.2018 23:10 tarihinde Alex Harui yazdı:
Hi Serkan,

I guess the States implementations will have to check for null  
parent and assume if null that the item should not be added because  
the parent is excluded.  Give that a try and see if you can get  
further.

You mean changing/modifying  js output, right ?



You could do that as a quick test, but it would be best if you patch  
the ActionScript code and submit a pull request if it works.


I’ve recommended several times that you choose Ant or Maven and not  
combine them.  Pick one.  I don’t care which one.  But if you  
combine them, then only Greg will be able to help you.  There should  
be no need to combine them.
May you share any documentation and/or guide about one of them that  
I can follow and produce fully usable output ? It may be one of the  
several times, sorry for that :)




In royale-asjs/examples, there are many examples that have an Ant  
build.xml file and a Maven pom.xml file.  Use one of those as a  
template.  If you have a lot of modules and want to use Ant, I would  
recommend examples/mxroyale/tourdeflexexample/build.xml


HTH,
-Alex



--
Serkan Taş
Mobil : +90 532

Re: Work on Emulation

2018-12-04 Thread serkan . tas
May be a problem with the mail, sorry for that but there are two  
images in mail i sent to you. One is folder view for Namenode.js and  
the other is browser console.


I am using firefox, and attaching the image again : image002.png

As i am at client for now, i am not able to send you the content of  
the folder. I ll do it after work.


Thanks.

Serkan


Alinti Alex Harui 

I see a screenshot of what looks like the file folder.  We need to  
know what the Browser has done.


What browser are you using?  Zip up your bin/js-debug and post it somewhere.

-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, December 4, 2018 at 7:48 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Alex, can you see the screen shots?
Android için  
Outlook uygulamasını  
edinin




On Wed, Dec 5, 2018 at 12:02 AM +0300, "Alex Harui"  
mailto:aha...@adobe.com>> wrote:
I don’t know what you mean by “check image for loaded files”.  I’m  
not sure what Image you refer to, plus, I already mentioned two ways  
to check.



From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, December 4, 2018 at 12:56 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi Alex,

Same approach also fixed the ImageContainer.as static initialization error.

The namespace error comes from main application and Namespace.js in  
root folder.


[cid:part1.80584B16.3C92@likyateknoloji.com]


 I guess the Namespace.js is not loaded if I check the right side of  
the image for loaded files. If this is the right way to check loaded  
files.


[cid:part2.7D2F40D8.4A37C7C1@likyateknoloji.com]


It is up for tonight. I am going to look forward tomorrow.

Thanks,
Serkan
4.12.2018 23:45 tarihinde Alex Harui yazdı:
Hi Serkan,

Is the mx_internal/Namespace problem coming from the main app or a  
module?  Is there a Namespace.js in bin/js-debug?  Is Namespace.js  
loaded at the time of the error?  You can examine in the browser the  
global variables looking for Namespace, and also check the set of  
scripts loaded by the browser.


Maybe the problem you are reporting with ArrayList and ModelLocator  
is the same that Yishay is reporting.  Some static dependencies are  
not being handled correctly, but your workaround should be fine for  
now.


-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Tuesday, December 4, 2018 at 12:16 PM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation

Hi Alex,

4.12.2018 03:45 tarihinde Alex Harui yazdı:



Serkan,

Are you sure you are using the latest code and have deleted the  
bin/js-debug before building?


I cleaned all folders and tried again.




If so, what is in mx_internal.js?  Mine has a section that looks  
like this, which should load Namespace (and Namespace.js should be  
in bin/js-debug)


Content of mx_internal.js

/**
 * Generated by Apache Royale Compiler from mx\core\mx_internal.as
 * mx.core.mx_internal
 *
 * @fileoverview
 *
 * @suppress {missingRequire|checkTypes|accessControls}
 */

goog.provide('mx.core.mx_internal');
/* Royale Dependency List: XML*/
/* Royale Static Dependency List: Namespace*/
goog.require('Namespace');

mx.core.mx_internal = new  
Namespace("http://www.adobe.com/2006/flex/mx/internal";);






What is the code in ToolTipContainer where it is throwing an error  
about ArrayList?


TooltipContainer.js [L:35]:

com.likya.pinara.containers.ToolTipContainer.com_likya_pinara_containers_ToolTipContainer_toolTipList = new  
mx.collections.ArrayList();


TooltipContainer.as :

package com.likya.pinara.containers
{
import mx.collections.ArrayList;
import mx.resources.ResourceManager;

public class ToolTipContainer {

private static var toolTipList:ArrayList = new ArrayList();

 
toolTipList.addItem(ResourceManager.getInstance().getString('messages',  
'readyTooltip'))
 
toolTipList.addItem(ResourceManager.getInstance().getString('messages',  
'waitingTooltip'))
 
toolTipList.addItem(ResourceManager.getInstance().getString('messages',  
'workingTooltip'))
 
toolTipList.addItem(ResourceManager.getInstance().getString('messages',  
'successfulTooltip'))
 
toolTipList.addItem(ResourceManager.getInstance().getString('messages',  
'failedTooltip'))
 
toolTipList.addItem(ResourceManager.getInstance().getString('messages',  
'timeoutTooltip'))
 
toolTipList.addItem(ResourceManager.getInstance().getString('messages',  
'skippedTooltip'))

Re: build is broken : royale-asjs, mxroyale, sparkroyale

2018-11-27 Thread serkan . tas



Hi Alex,

I know tha batch file does not change but the jar inside. I was  
expecting that the batch file points to the latest jar generated in  
somewhere in one of three repos.


Let me make it clear. I am happy with building framework with maven  
and building my project with ant.


I understand that you advise me to choose all-maven or or-ant but i do  
not think it is neccessary, spesifically for my own project.


I just need to know the place of the compiler-jar in the repo after  
building all three repositories with maven locally rather than  
donwloading the nigtly builds.


Simply, as a summary i would like to know how can i generate nightly  
build on my local environment ?:)


if yes, then it solves all my problems, if no than it is better to  
wait for the nightly build to be available with latest commits.


Any advice appreciated.

Thanks,
Serkan



Alinti Alex Harui 


I don’t think mxmlc.bat has changed.

I think you are using some unusual workflow, using Maven to build  
SWC and then referencing them from the command-line instead of using  
Maven to build the app.  IMO, it would be better for you to choose  
Maven or not-Maven (Ant and command-line) so you are using one of  
our supported workflows, and then we will have a better idea of how  
to answer questions like this.


My 2 cents,
-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, November 27, 2018 at 1:34 PM
To: "users@royale.apache.org" 
Subject: Re: build is broken : royale-asjs, mxroyale, sparkroyale

Hi Alex,

running mvn sequentially for royale-compiler, royale-typedefs-,  
royale-asjs builds are fixed.


For the latest downloaded release i was using  
apache-royale-0.9.5-bin-js-swf\royale-asjs\js\bin\mxmlc.bat for build.


Which file should i use from repos ?

Thanks,
Serkan
27.11.2018 23:58 tarihinde Alex Harui yazdı:
I should really have written:  “the latest development version”.   
The latest released version will be publicly available.


The CI server got stuck somehow.  We’ll see if the next build works.  
 Looks like it takes an hour or so on the CI server.  Building them  
yourself should be faster.


-Alex

From: Alex Harui 
Reply-To: "users@royale.apache.org"  


Date: Tuesday, November 27, 2018 at 12:42 PM
To: "users@royale.apache.org"  


Subject: Re: build is broken : royale-asjs, mxroyale, sparkroyale

The latest version is not guaranteed to have publicly available  
builds, so you have to build them yourself.  It is to your advantage  
to be able to build them yourself in order to pick up latest changes.


-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Tuesday, November 27, 2018 at 12:38 PM
To: "users@royale.apache.org"  


Subject: Re: build is broken : royale-asjs, mxroyale, sparkroyale


No, royale-asjs also failed, but i did not build the other repositories.

I am going to follow your advises but, until now, i did not require  
any other projects (royale-compiler, royale-typedefs) to build, just  
mxroyale and sparkroyale sequentially maven build worked for me,  
just for your attention.


Here are the builds i used :

MX
set MAVEN_OPTS=-Dfile.encoding=UTF-8 -Duser.country=EN -Duser.language=en
(cd  
D:\dev\royale-emulation-works\github\royale-asjs\frameworks\projects\MXRoyale && mvn -DskipTests -Drat.skip=true clean  
install)


SPARK
set MAVEN_OPTS=-Dfile.encoding=UTF-8 -Duser.country=EN -Duser.language=en
(cd  
D:\dev\royale-emulation-works\github\royale-asjs\frameworks\projects\SparkRoyale && mvn -DskipTests -Drat.skip=true clean  
install)


Thanks,
Serkan
27.11.2018 23:17 tarihinde Alex Harui yazdı:
Did the full build of royale-asjs succeed?  MXRoyale will not build  
until you have built all of its dependencies.


If you are using Maven, you will need to sync up all 3 repos  
(royale-compiler, royale-typedefs-, royale-asjs).


In each repo in the order above, use “mvn clean install”.

-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Tuesday, November 27, 2018 at 12:13 PM
To: "users@royale.apache.org"  


Subject: build is broken : royale-asjs, mxroyale, sparkroyale

Hi,

After version upgrade, i having build issues. MXRoyale, SparkRoyale  
and royale-asjs maven build are all broken.


Here is the output for MXRoyale :  
https://drive.google.com/open?id=1jfRezjjJTcVDCt84hkS19WVXGKB5eXX4

Re: Work on Emulation

2018-11-13 Thread serkan . tas



Hi Alex,

1. Try adding the compiler option: -diagnostics=14335 : okay
2. Ideally, someone like you will volunteer to setup a debug  
environment with Eclipse and the compiler source and find out exactly  
what is going on. : it is getting deeper but exciting.
3. Another option is to comment out your code until the compiler works  
to see what code triggers the hang. : I am not sure but may give a try.

4. Is the compiler eventually exiting or are you stopping it?


1. if i delete the previous swf file, and run compile script,  
compiler hung with the line : 479642 bytes written to  
D:\dev\royale-emulation-works\PinaraUI.swf in 34,602 seconds


2. if i did not delete the swf file, , and run compile script,  
compiler completes with the line : 34.835480966 seconds


In the first case : I am (CTRL-C) breaking the script in the second  
one, it completes and terminates itself.


Thanks,
Serkan

Alinti Alex Harui 

Other people have reported the compiler hanging.  We’ve been unable  
to reproduce it ourselves.


Try adding the compiler option: -diagnostics=14335

Hopefully you will see additional output.

Ideally, someone like you will volunteer to setup a debug  
environment with Eclipse and the compiler source and find out  
exactly what is going on.  Another option is to comment out your  
code until the compiler works to see what code triggers the hang.   
Is the compiler eventually exiting or are you stopping it?


-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, November 13, 2018 at 12:33 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi Alex,

I agree with you and i also expected to get info about swf but it is  
not the case. And agree that compiler hung. May be you may remember  
i prepared a small test application on github and compiled it  
successfully and sent you the results, so  i am aware.


e.g. (from small test app)

47193 bytes written to  
D:\dev\royale-emulation-works\github\royale-testing\src\main\Main.swf in  
4,198 seconds


The project 'Main' has been successfully compiled and optimized.
36.614827901 seconds

And i see the same thing as you : all warnings :)

1. if i delete the previous swf file, and run compile script,  
compiler hung with the line : 479642 bytes written to  
D:\dev\royale-emulation-works\PinaraUI.swf in 34,602 seconds


2. if i did not delete the swf file, , and run compile script,  
compiler completes with the line : 34.835480966 seconds


Where to go from here ?

Thanks.
Serkan,
13.11.2018 00:35 tarihinde Alex Harui yazdı:
Hi Serkan,

I would have expected other output, like how many bytes it wrote to  
a SWF and the command prompt would have come back.  I’m wondering if  
the compiler hung.  If you compile a small test app you should see  
that it tells you it wrote the SWF and other output about writing JS  
files.  All I see in your log is warnings.


-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Monday, November 12, 2018 at 1:18 PM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation

Hi,

I am not sure but i think i can compile my project without error.

Here is the latest output of my build :  
https://drive.google.com/open?id=16Q1OLxAKa2lsbCcXZEebX7g6L21j4PsP
Build script :  
https://drive.google.com/open?id=1J_fX762H1LXJMrBvYuOrzmmqfQZGhvtn
Project repo:  
https://github.com/likyateknoloji/pinaraui-royale/


I have my swf file but not have any js output.

I want to test both swf and javascript output and need some help.

Thanks
Serkan
12.11.2018 22:09 tarihinde Serkan Taş yazdı:
May you please check PR :  
https://github.com/apache/royale-asjs/pull/339

Re: Work on Emulation

2018-10-24 Thread serkan . tas

Hi Piotr,

Thanks, i will check it but it is working in flex and ci hecked that  
the declarations are identical in royale and flex.


Alex told about metadata which is  i am not aware.

Thanks,
Serkan


Alinti Piotr Zarzycki 


Hi Serkan,

percentWidth/percentHeight should be available.

Piotr

On Tue, Oct 23, 2018, 11:03 PM Serkan Taş 
wrote:


Hi,

I am getting error while using percentage for number.

ToggleSwitchSkin.mxml(279): col: 19 Error: Cannot parse a value of type
'Number' from '100%'.

https://paste.apache.org/oOLg

Thanks,

Pashmina kazi



*From:* Alex Harui [mailto:aha...@adobe.com ]
*Sent:* Tuesday, October 23, 2018 11:24 AM
*To:* users@royale.apache.org
*Subject:* Re: Work on Emulation



Hi Pashmina,



That is not a full log.  It doesn’t show what command you typed and I’ll
bet several lines of output were not captured, including one or more with
an error.  You will need to set up your console to capture more lines, or
redirect the output to a file.



Thanks,

-Alex



*From: *Pushmina Kazi  
*Reply-To: *"users@royale.apache.org" 
 
*Date: *Monday, October 22, 2018 at 11:14 PM
*To: *"users@royale.apache.org" 
 
*Subject: *RE: Work on Emulation



Hi,

Full Log: https://paste.apache.org/dXh0


Thanks,

-Pashmina kazi



*From:* Piotr Zarzycki [mailto:piotrzarzyck...@gmail.com
]
*Sent:* Friday, October 19, 2018 4:36 PM
*To:* users@royale.apache.org
*Cc:* d...@royale.apache.org
*Subject:* Re: Work on Emulation



Hi Pushmina,



Provide full logs.



Thanks,

Piotr



pt., 19 paź 2018 o 12:56 Pushmina Kazi 
napisał(a):

Hi,

I have an issue:

I am compiling my library project

There is no error but still build failed

Why?



Thanks,

-Pashmina kazi



*From:* Alex Harui [mailto:aha...@adobe.com]
*Sent:* Friday, October 19, 2018 5:44 AM
*To:* users@royale.apache.org
*Subject:* Re: Work on Emulation



Hi Serkan,



Try s:ArrayCollection to see if that works.

Try removing s:ArrayCollection from the manifest and see if you then get
the same error you are getting for ArrayList.  Maybe there is some issue
with which SWC you are actually compiling against.  Maybe the one you
updated isn’t in the library-path.  Also make sure you update both
MXRoyale.swc and MXRoyaleJS.swc.



HTH,

-Alex



*From: *Serkan Taş 
*Reply-To: *"users@royale.apache.org" 
*Date: *Thursday, October 18, 2018 at 12:49 PM
*To: *"users@royale.apache.org" 
*Subject: *Re: Work on Emulation



Yes, i did not commit to github for a long time. Nobody uses rather than
me :)

Here is the local one :

http://ns.adobe.com/mxml/2009";

 xmlns:s="library://ns.apache.org/royale/spark
"

 xmlns:mx="library://ns.apache.org/royale/mx
"

 width="100%" height="100%"
 xmlns:jobmanager="com.likya.pinara.services.jobmanager.*"
 xmlns:jobdetail="com.likya.pinara.comps.jobdetail.*"
xmlns:grpmanager="com.likya.pinara.services.grpmanager.*" >















































18.10.2018 22:46 tarihinde Alex Harui yazdı:

Hi Serkan,



The version of UserListGrid.mxml in your GitHub repo still is using the
old adobe.com


Re: Work on Emulation

2018-10-24 Thread serkan . tas



Hi Alex,

I checked UIBase and UIComponent bu still I am not sure that i know  
how to implement width on Rect using metadat.



Thanks,
Serkan



Alinti Alex Harui 

That implies that there is some missing metadata.  Check the  
metadata in UIBase or UIComponent and add it to Rect.


Thanks,
-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, October 23, 2018 at 2:03 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi,

I am getting error while using percentage for number.

ToggleSwitchSkin.mxml(279): col: 19 Error: Cannot parse a value of  
type 'Number' from '100%'.


https://paste.apache.org/oOLg
Thanks,
Pashmina kazi

From: Alex Harui [mailto:aha...@adobe.com]
Sent: Tuesday, October 23, 2018 11:24 AM
To: users@royale.apache.org
Subject: Re: Work on Emulation

Hi Pashmina,

That is not a full log.  It doesn’t show what command you typed and  
I’ll bet several lines of output were not captured, including one or  
more with an error.  You will need to set up your console to capture  
more lines, or redirect the output to a file.


Thanks,
-Alex

From: Pushmina Kazi 
Reply-To: "users@royale.apache.org"  


Date: Monday, October 22, 2018 at 11:14 PM
To: "users@royale.apache.org"  


Subject: RE: Work on Emulation

Hi,
Full Log:  
https://paste.apache.org/dXh0

Thanks,
-Pashmina kazi

From: Piotr Zarzycki [mailto:piotrzarzyck...@gmail.com]
Sent: Friday, October 19, 2018 4:36 PM
To: users@royale.apache.org
Cc: d...@royale.apache.org
Subject: Re: Work on Emulation

Hi Pushmina,

Provide full logs.

Thanks,
Piotr

pt., 19 paź 2018 o 12:56 Pushmina Kazi  
mailto:pushmina.k...@d-bz.com>> napisał(a):

Hi,
I have an issue:
I am compiling my library project
There is no error but still build failed
Why?

Thanks,
-Pashmina kazi

From: Alex Harui [mailto:aha...@adobe.com]
Sent: Friday, October 19, 2018 5:44 AM
To: users@royale.apache.org
Subject: Re: Work on Emulation

Hi Serkan,

Try s:ArrayCollection to see if that works.
Try removing s:ArrayCollection from the manifest and see if you then  
get the same error you are getting for ArrayList.  Maybe there is  
some issue with which SWC you are actually compiling against.  Maybe  
the one you updated isn’t in the library-path.  Also make sure you  
update both MXRoyale.swc and MXRoyaleJS.swc.


HTH,
-Alex

From: Serkan Taş  
mailto:serkan@likyateknoloji.com>>
Reply-To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Date: Thursday, October 18, 2018 at 12:49 PM
To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Subject: Re: Work on Emulation

Yes, i did not commit to github for a long time. Nobody uses rather  
than me :)


Here is the local one :

xmlns:fx="http://ns.adobe.com/mxml/2009";
  
xmlns:s="library://ns.apache.org/royale/spark"
  
xmlns:mx="library://ns.apache.org/royale/mx"

 width="100%" height="100%"
 xmlns:jobmanager="com.likya.pinara.services.jobmanager.*"
 xmlns:jobdetail="com.likya.pinara.comps.jobdetail.*"  
xmlns:grpmanager="com.likya.pinara.services.grpmanager.*" >











Re: Work on Emulation

2018-10-11 Thread serkan . tas



Hi Alex,

The current component is spark Form and i think comes from the parent  
whicih is styling. You may check in the log file.


Thanks,

Serkan..

Alinti Alex Harui 


Hi Serkan,

What is the class hierarchy of these classes that report issues with  
currentState?  UIComponent has a currentState property.  Just about  
everything in Flex derives from UIComponent?


-Alex

From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Wednesday, October 10, 2018 at 1:00 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation

Hi,

Here is my latest output for build process :  
https://drive.google.com/open?id=16Q1OLxAKa2lsbCcXZEebX7g6L21j4PsP


Thanks,
Serkan.
9.10.2018 11:58 tarihinde Serkan Taş yazdı:
Hi,

May you check please :  
https://github.com/apache/royale-asjs/pull/313


Thanks
Serkan
9.10.2018 10:12 tarihinde Serkan Taş yazdı:
Thanks.
Serkan
9.10.2018 10:04 tarihinde Alex Harui yazdı:
Hi Serkan,

All Pull Requests should be against the develop branch until further  
notice.  The feature/MXRoyale branch is not active.


Thanks,
-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Tuesday, October 9, 2018 at 12:02 AM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation

Hi,
Is the feature/MXRoyale branch still active for pull request for the  
emulation ?

Thanks
Serkan
9.10.2018 01:40 tarihinde Serkan Taş yazdı:

Currently - i hope - i finished the spark.components.Grid. Tomorrow  
i am planning to create push request for the emulation classes. I  
need to check for copyright etc.

9.10.2018 00:30 tarihinde Alex Harui yazdı:
Feel free to provide some snippets that show what you are trying to  
do.  I can’t think of any scenarios where lots of classes would now  
need to implement an interface but they don’t share a base class.
There are some places in Royale where interfaces should be replaced  
by testing for beads.  So it depends a bit on what your scenario is.


HTH,
-Alex


From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Monday, October 8, 2018 at 2:23 PM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation


Hi Alex,
9.10.2018 00:07 tarihinde Alex Harui yazdı:
An interface is a contract that promises a certain set of APIs, so  
no, there is no way out.  If there was, you would not be able to  
trust the lack of VerifyErrors as assurance that your code is going  
to work, especially when loading things that are compiled separately  
like modules.

Sure, okay.




That said, Royale interfaces are still works-in-progress, so you  
might be seeing symptoms that a Royale interface needs to be  
re-factored.  But for the purposes of emulation, I would consider  
the Flex interfaces to be “frozen”.


Defining the missing methods can be “easy”.  Copy the interface  
APIs, add “public” in front of them.  Add “{}” function bodies after  
them, and return 0 or null where needed.


If we are talking about lots of classes implementing the interface,  
it takes too much time according to hierarchy :)


Just trying to find a way to make it easier.

HTH,
-Alex

From: Serkan Taş  

Reply-To: "users@royale.apache.org"  


Date: Monday, October 8, 2018 at 1:34 PM
To: "users@royale.apache.org"  


Subject: Re: Work on Emulation


Hi,

If a class implements interface and the class does not define the  
methods declared in interface, compiler output errors.


Is it possible to fix it without defining the methods ?

Thanks

serkan
8.10.2018 05:51 tarihinde Alex Harui yazdı:
Hi Serkan,

It doesn’t matter whether the file is a .mxml or .as file, what  
matters is, in an mxml file, whether the usage is in MXML  
markup/tags or in Script.  Without looking at the log, I see that  
the error is about an “import spark.components.Grid” which looks  
like Script code.  And thus, the class has to actually exist, you  
can’t map 

Re: Work on Emulation

2018-10-03 Thread serkan . tas

Hi Alex,

Here are my comments inline...

Alinti Alex Harui 


Hi Serkan,

I would advise against using -include-libraries.  There is no need  
to copy MXRoyale into AS3CoreLib and it would make AS3CoreLib very  
big and create a maintenance issue as the code in MXRoyale changes.


I believe you are getting lots of warnings building as3corelib  
because MXRoyale-0.9.4-SNAPSHOT.swc should be on the  
-external-library-path and MXRoyale-0.9.4-SNAPSHOT-js.swc should on  
the -js-external-library-path.  IOW, the Maven SWC with the “-js” in  
the name is for JS compilation, not SWF compilation.


Ok i am going to try it.



In the application compile, it seems like the compiler can’t find  
the s:Group in some of the files, but assuming you use Group in  
other files, maybe the issue is that the xml namespace for “s” is  
mis-typed or didn’t get updated?  Or is Group really not working in  
any file?


I am going to check it.



I see a bunch of errors related to using embedded assets.  I think I  
already mentioned that Royale doesn’t yet support embedding.


Is it possbile for me to emulate it or need more expertise ?



Other errors are due to not all Spark classes being emulated yet.


Ok.



Other errors are due to using flash APIs like URLLoader.  Royale has  
a URLLoader you can use instead.


Ok.



You might want to grab a nightly build in about an hour or so.  I  
added a resourceManager emulation that should eliminate more of the  
errors and make it easier to see what is left.




Ok.

Regarding the toUpper, if you know the fix, you can create a  
PullRequest for it.  Otherwise, please file a Github Issue.




If you give me the localtion of code genereatore of compiler i may  
submit patch.




Thanks,
-Alex



Thanks
Serkan...


From: Serkan Taş 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, October 2, 2018 at 12:35 PM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation


Let me make it clear :)
2.10.2018 20:43 tarihinde Alex Harui yazdı:
Hi Serkan,

I think I’m still confused.  It looks like you are using Maven to  
build the MXRoyale swc.  That will generate a SWC called something  
like MXRoyale-0.9.4-SNAPSHOT.swc and store it in your local Maven  
repository, which is probably C:\Users\serkan\.m2\repository.


Yes it is correct. When i build mxroyale, the libraries are stored  
in local maven repo :  
C:\Users\serkan\.m2\repository\org\apache\royale\framework\MXRoyale\0.9.4-SNAPSHOT




Then later, you say you finally got a command-line and it shows you  
are running mxmlc.  That mxmlc will not look at the  
MXRoyale-0.9.4-SNAPSHOT.swc in the Maven repository.  It is probably  
looking for MXRoyale.swc (notice the Ant/Command-Line name is  
different than the Maven name) in


D:\dev\royale-emulation-works>D:\dev\royale-emulation-works\apache-royale-0.9.4-bin-js-swf\royale-asjs\frameworks\libs

Your updated MXRoyale-0.9.4-SNAPSHOT.swc will therefore not be used.
Exactly not used, so i had to define manually and the library  
as3corelib.swc is generated :  
https://drive.google.com/file/d/17F5nrGtbX1bHYAuron3Z0xI5KwiEeYYx/view?usp=sharing



Separately, I’m not sure why the compiler can’t find the SparkRoyale  
components.  I know not all of Spark components are emulated in  
there, but Group definitely is.  This makes me think that  
SparkRoyale is somehow not on the library-path (or js-library-path).


If you do find a missing component, the way to add it is to edit the  
frameworks/projects/SparkRoyale/src/main/resources/spark-royale-manifest.xml.  You will see an entry in there for ArrayCollection and a few other components that have lookup-“true” attributes.  But I think the first problem is to figure out why Group is not being seen by the compiler.  It is either not in the library-path or js-library-path or it is missing some  
components.


It looks like you didn’t post all of the output.  It might help to  
get all of it so we can see what the compiler did do correctly up to  
the point of failure.


Here is the full log of PinaraUI build :  
https://drive.google.com/file/d/1OaWKhR2lH2oUNrieY9oYOFnbCszls5XP/view?usp=sharing


And last note, just not to miss, do i need to  report and issue ? :  
"I am using fb and it is using utf-8. The issue is related with the  
code generator 

Re: Work on Emulation

2018-09-26 Thread serkan . tas



Hi Alex,

It is better to go the way you are on, TourDeFlex. I may return to my  
list later.


Where should i begin, any special class or object/class collection ?

Thanks
Serkan

Alinti Alex Harui 


Hi Serkan,

I've gotten most of TourDeFlex to compile against the emulation  
components.  I'm sure there are things on your list that we haven't  
worked on yet, but it would help a lot of you contribute to that  
effort.


Right now I am trying to get more of TourDeFlex to run.  The main  
screens and some modules are working.


HTH,
-Alex

On 9/25/18, 12:34 AM, "Serkan Taş"  wrote:

Hi,

May i get the latest status of the Work on Emulation, then i may go on
with the components from my api report.

Thanks in advance.

Serkan,



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: Work on Emulation

2018-05-29 Thread serkan . tas



Hi,

Thanx to Alina for the work done. As i see the list defined in [1] is  
completed.


Can we say that the emulation process is in final state or may we add  
new components to the list for emulation ?


Serkan


[1] https://github.com/apache/royale-asjs/issues/136

Alinti Alina Kazi 


Thanks Alex.

All mx and spark Components are emulated except 1 that is in Progress.

Hopefully tomorrow I will merge PR’s.

Feature/MXRoyale branch is 331 commits ahead, 108 commits behind develop.

I just wanted to know when you are going to merge that branch with  
develop branch, do you merge these components will be functional ?


What should I do next to make them functional ?



Also , Thanks for providing a very helpful guide for the creation of  
the emulation:


https://github.com/apache/royale-asjs/wiki/Emulation-Components



-Alina Kazi



From: Alex Harui [mailto:aha...@adobe.com]
Sent: Friday, May 25, 2018 9:31 PM
To: users@royale.apache.org
Subject: Re: Work on Emulation



Hi Alina,



That’s great.  I see you have almost completed the creation of the  
emulation classes.  That will be a significant milestone when you  
achieve that.




Keep up the good work.

-Alex



From: Alina Kazi 
Reply-To: "users@royale.apache.org" 
Date: Friday, May 25, 2018 at 4:14 AM
To: "users@royale.apache.org" 
Subject: Re: Work on Emulation



Hi,

Few Emulated Spark & MX Components are compiled together.

MX : Button & Label

Spark :Button,CheckBox,TextArea,TextInput,NumericStepper, List & DropDownList

Project link:

https://www.dropbox.com/s/bm2uv6bfzoqo3u0/HelloWorld.rar?dl=0  





Thanks,

Alina Kazi



On Tue, May 22, 2018 at 8:39 PM, Alex Harui  wrote:

Hi Shahid,



Please try to ask more specific questions.  In this case, maybe  
something like:  “When I compile these lines of MXML with this  
command line I get this error”.




Thanks,

-Alex



From: Shahid Khan 
Reply-To: "users@royale.apache.org" 
Date: Tuesday, May 22, 2018 at 12:56 AM
To: "users@royale.apache.org" 
Subject: Work on Emulation



Hi,



I’m having compile issues with MX/Spark tags while emulating MXML  
files so needs some instructions on how to emulate them?




Thanks

Shahid



--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Fork Question

2018-05-18 Thread serkan . tas

Hi all,

I need some help for forking the royale-asjs repo.

I created the fork and added upstream info according to documentation. [1]
When trying to sync the fork [2] I get error at the step of branch chekout :

error: pathspec 'master' did not match any file(s) known to git.

I tried some investigation on the issue, but could not find resolution yet.

If any one may help it would shorten my research.

Thanks in advance
Serkan.

[1] https://help.github.com/articles/fork-a-repo/
[2] https://help.github.com/articles/syncing-a-fork/#platform-linux

--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: is being broken by the compiler

2018-05-16 Thread serkan . tas

Okay i'll make it :)

Can you check if your response to my comments are viewable for me ?

Alinti Piotr Zarzycki 


I you are going to do that, make sure to create new branch for that. If not
you will mess up the current one. :)

2018-05-16 12:39 GMT+02:00 :



I know Piotr :)

I am working on the issue, may be am going to close PR and create new one
after syncronizing repos.

Alinti Piotr Zarzycki 


Looking forward to your update! :) Make sure that your branch is refreshed

with newest changes from MXRoyale branch, because I see that there are
some
conflicts.

Thanks,
Piotr

2018-05-16 12:23 GMT+02:00 :



Thank you Piotr,

They are not ready. I will inform you when i prepare PR update.


Serkan.

Alinti Piotr Zarzycki 

Serkan,



If you have your changes ready after my comments, please update your
pull
request and let me know!

Piotr

2018-05-16 9:31 GMT+02:00 :


Hi Piotr,


Rather than asking on the list, i would like to check first if you had
time to see my coments that i made few days ago.

Thanks


Serkan.

Alinti Piotr Zarzycki 

Serkan,



Are you going to update that PR - that's what you mean ? If something
is
not fully understandable let me know. Just add comment on GitHub.

Thanks, Piotr

2018-05-14 15:30 GMT+02:00 :


Thanks Piotr,



I agree with you with the comments about Wrappers to be compiled with
JS-ONLY directives,
not clear with the others as I am not experienced on the codebase.

I am going to work on Base64Decoder while waiting for the PR
confirmed.


Serkan.

Alinti Piotr Zarzycki 

Serkan,


I'm sorry about that. You should now see the comments.


Piotr

2018-05-13 23:14 GMT+02:00 Serkan Taş <
serkan@likyateknoloji.com
>:

Thanks Piotr,


Can you please share your comments with me also, cause i can not see

them
on github (may be i am missing something)

I am looking forward.
Serkan

13.05.2018 13:57 tarihinde Piotr Zarzycki yazdı:

Hi Serkan,

I just finished review of your pull request. I have added bunch of
comments. It would be great to have some insight from other PMCs,
cause
I'm
not sure about some things.

Thanks,
Piotr

2018-05-10 20:46 GMT+02:00 Serkan Taş <
serkan@likyateknoloji.com
>:

Sure that it is working with the test application but i'll give a
try
to

have wrappers and than create PR.



10.05.2018 10:29 tarihinde Alex Harui yazdı:

Hi Serkan,



Does that mean you have a working mx.utils.Base64Encoder?  If so,
that’s
great news!  Please file a Pull Request with your code.



Thanks,

-Alex



*From: *Serkan Taş 

*Reply-To: *"users@royale.apache.org" 
 
*Date: *Wednesday, May 9, 2018 at 10:00 PM
*To: *"users@royale.apache.org" 
 
*Subject: *Re:  is being broken by the compiler



Hi Piotr and Alex,

Piotr;

I worked on your code and it was starting point of my
implementation.
Tank you so much.

Alex,

I now see the that i missed meaning of  "has to go in the ASDoc
for
the
constructor"   in your mail belongs to previous thread.

Sorry for misunderstanding and thank you for your clarification.

To show the point mixed up my mind for your referance :

NOT Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the
index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079891578&sdata=C%2B1tfD48vUt6aKupj
D0fqk5vBWmxYtWCRUFnFuHh6zw%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079901586&sdata=NxNZD3qfIJU
HbeOcWHaw5uSwa8GwetCbJ%2FnqOm6jOkw%3D&reserved=0>
>
 * 
 */
*/** */*
public function BaseTester()
{
}
}
}

Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the
index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40

Re: is being broken by the compiler

2018-05-16 Thread serkan . tas


I know Piotr :)

I am working on the issue, may be am going to close PR and create new  
one after syncronizing repos.


Alinti Piotr Zarzycki 


Looking forward to your update! :) Make sure that your branch is refreshed
with newest changes from MXRoyale branch, because I see that there are some
conflicts.

Thanks,
Piotr

2018-05-16 12:23 GMT+02:00 :



Thank you Piotr,

They are not ready. I will inform you when i prepare PR update.


Serkan.

Alinti Piotr Zarzycki 

Serkan,


If you have your changes ready after my comments, please update your pull
request and let me know!

Piotr

2018-05-16 9:31 GMT+02:00 :



Hi Piotr,

Rather than asking on the list, i would like to check first if you had
time to see my coments that i made few days ago.

Thanks


Serkan.

Alinti Piotr Zarzycki 

Serkan,



Are you going to update that PR - that's what you mean ? If something is
not fully understandable let me know. Just add comment on GitHub.

Thanks, Piotr

2018-05-14 15:30 GMT+02:00 :


Thanks Piotr,


I agree with you with the comments about Wrappers to be compiled with
JS-ONLY directives,
not clear with the others as I am not experienced on the codebase.

I am going to work on Base64Decoder while waiting for the PR confirmed.


Serkan.

Alinti Piotr Zarzycki 

Serkan,



I'm sorry about that. You should now see the comments.

Piotr

2018-05-13 23:14 GMT+02:00 Serkan Taş :

Thanks Piotr,



Can you please share your comments with me also, cause i can not see
them
on github (may be i am missing something)

I am looking forward.
Serkan

13.05.2018 13:57 tarihinde Piotr Zarzycki yazdı:

Hi Serkan,

I just finished review of your pull request. I have added bunch of
comments. It would be great to have some insight from other PMCs,
cause
I'm
not sure about some things.

Thanks,
Piotr

2018-05-10 20:46 GMT+02:00 Serkan Taş :

Sure that it is working with the test application but i'll give a try
to

have wrappers and than create PR.


10.05.2018 10:29 tarihinde Alex Harui yazdı:

Hi Serkan,



Does that mean you have a working mx.utils.Base64Encoder?  If so,
that’s
great news!  Please file a Pull Request with your code.



Thanks,

-Alex



*From: *Serkan Taş 

*Reply-To: *"users@royale.apache.org" 
 
*Date: *Wednesday, May 9, 2018 at 10:00 PM
*To: *"users@royale.apache.org" 
 
*Subject: *Re:  is being broken by the compiler



Hi Piotr and Alex,

Piotr;

I worked on your code and it was starting point of my
implementation.
Tank you so much.

Alex,

I now see the that i missed meaning of  "has to go in the ASDoc for
the
constructor"   in your mail belongs to previous thread.

Sorry for misunderstanding and thank you for your clarification.

To show the point mixed up my mind for your referance :

NOT Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079891578&sdata=C%2B1tfD48vUt6aKupj
D0fqk5vBWmxYtWCRUFnFuHh6zw%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079901586&sdata=NxNZD3qfIJU
HbeOcWHaw5uSwa8GwetCbJ%2FnqOm6jOkw%3D&reserved=0>
>
 * 
 */
*/** */*
public function BaseTester()
{
}
}
}

Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079911594&sdata=3sGjeKNub2rLOajGVQj
8iHWjYRWQlzZeYWnCLJ9Dwr4%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<Re:  is being broken by the compiler



Thank you Piotr,

They are not ready. I will inform you when i prepare PR update.

Serkan.

Alinti Piotr Zarzycki 


Serkan,

If you have your changes ready after my comments, please update your pull
request and let me know!

Piotr

2018-05-16 9:31 GMT+02:00 :



Hi Piotr,

Rather than asking on the list, i would like to check first if you had
time to see my coments that i made few days ago.

Thanks


Serkan.

Alinti Piotr Zarzycki 

Serkan,


Are you going to update that PR - that's what you mean ? If something is
not fully understandable let me know. Just add comment on GitHub.

Thanks, Piotr

2018-05-14 15:30 GMT+02:00 :



Thanks Piotr,

I agree with you with the comments about Wrappers to be compiled with
JS-ONLY directives,
not clear with the others as I am not experienced on the codebase.

I am going to work on Base64Decoder while waiting for the PR confirmed.


Serkan.

Alinti Piotr Zarzycki 

Serkan,



I'm sorry about that. You should now see the comments.

Piotr

2018-05-13 23:14 GMT+02:00 Serkan Taş :

Thanks Piotr,



Can you please share your comments with me also, cause i can not see
them
on github (may be i am missing something)

I am looking forward.
Serkan

13.05.2018 13:57 tarihinde Piotr Zarzycki yazdı:

Hi Serkan,

I just finished review of your pull request. I have added bunch of
comments. It would be great to have some insight from other PMCs, cause
I'm
not sure about some things.

Thanks,
Piotr

2018-05-10 20:46 GMT+02:00 Serkan Taş :

Sure that it is working with the test application but i'll give a try
to


have wrappers and than create PR.

10.05.2018 10:29 tarihinde Alex Harui yazdı:

Hi Serkan,



Does that mean you have a working mx.utils.Base64Encoder?  If so,
that’s
great news!  Please file a Pull Request with your code.



Thanks,

-Alex



*From: *Serkan Taş 

*Reply-To: *"users@royale.apache.org" 
 
*Date: *Wednesday, May 9, 2018 at 10:00 PM
*To: *"users@royale.apache.org" 
 
*Subject: *Re:  is being broken by the compiler



Hi Piotr and Alex,

Piotr;

I worked on your code and it was starting point of my implementation.
Tank you so much.

Alex,

I now see the that i missed meaning of  "has to go in the ASDoc for
the
constructor"   in your mail belongs to previous thread.

Sorry for misunderstanding and thank you for your clarification.

To show the point mixed up my mind for your referance :

NOT Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079891578&sdata=C%2B1tfD48vUt6aKupj
D0fqk5vBWmxYtWCRUFnFuHh6zw%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079901586&sdata=NxNZD3qfIJU
HbeOcWHaw5uSwa8GwetCbJ%2FnqOm6jOkw%3D&reserved=0>
>
 * 
 */
*/** */*
public function BaseTester()
{
}
}
}

Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079911594&sdata=3sGjeKNub2rLOajGVQj
8iHWjYRWQlzZeYWnCLJ9Dwr4%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079921602&sdata=tyYxIkfE7qs
WHf43tQ9%2BlI7RkGULPGyWhPCxEq

Re: is being broken by the compiler



Hi Piotr,

Rather than asking on the list, i would like to check first if you had  
time to see my coments that i made few days ago.


Thanks

Serkan.

Alinti Piotr Zarzycki 


Serkan,

Are you going to update that PR - that's what you mean ? If something is
not fully understandable let me know. Just add comment on GitHub.

Thanks, Piotr

2018-05-14 15:30 GMT+02:00 :



Thanks Piotr,

I agree with you with the comments about Wrappers to be compiled with
JS-ONLY directives,
not clear with the others as I am not experienced on the codebase.

I am going to work on Base64Decoder while waiting for the PR confirmed.


Serkan.

Alinti Piotr Zarzycki 

Serkan,


I'm sorry about that. You should now see the comments.

Piotr

2018-05-13 23:14 GMT+02:00 Serkan Taş :

Thanks Piotr,


Can you please share your comments with me also, cause i can not see them
on github (may be i am missing something)

I am looking forward.
Serkan

13.05.2018 13:57 tarihinde Piotr Zarzycki yazdı:

Hi Serkan,

I just finished review of your pull request. I have added bunch of
comments. It would be great to have some insight from other PMCs, cause
I'm
not sure about some things.

Thanks,
Piotr

2018-05-10 20:46 GMT+02:00 Serkan Taş :

Sure that it is working with the test application but i'll give a try to

have wrappers and than create PR.

10.05.2018 10:29 tarihinde Alex Harui yazdı:

Hi Serkan,



Does that mean you have a working mx.utils.Base64Encoder?  If so, that’s
great news!  Please file a Pull Request with your code.



Thanks,

-Alex



*From: *Serkan Taş 

*Reply-To: *"users@royale.apache.org" 
 
*Date: *Wednesday, May 9, 2018 at 10:00 PM
*To: *"users@royale.apache.org" 
 
*Subject: *Re:  is being broken by the compiler



Hi Piotr and Alex,

Piotr;

I worked on your code and it was starting point of my implementation.
Tank you so much.

Alex,

I now see the that i missed meaning of  "has to go in the ASDoc for the
constructor"   in your mail belongs to previous thread.

Sorry for misunderstanding and thank you for your clarification.

To show the point mixed up my mind for your referance :

NOT Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079891578&sdata=C%2B1tfD48vUt6aKupj
D0fqk5vBWmxYtWCRUFnFuHh6zw%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079901586&sdata=NxNZD3qfIJU
HbeOcWHaw5uSwa8GwetCbJ%2FnqOm6jOkw%3D&reserved=0>
>
 * 
 */
*/** */*
public function BaseTester()
{
}
}
}

Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079911594&sdata=3sGjeKNub2rLOajGVQj
8iHWjYRWQlzZeYWnCLJ9Dwr4%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079921602&sdata=tyYxIkfE7qs
WHf43tQ9%2BlI7RkGULPGyWhPCxEqiP2hk%3D&reserved=0>
>
 * 
 */
public function BaseTester()
{
}
}
}



10.05.2018 01:04 tarihinde Alex Harui yazdı:

Hi Serkan,



It is hard to tell from your description what you are trying, but as I
mentioned in the ot

Re: is being broken by the compiler



Ok Piotr, I am going to add my comments about PR on github.

Thanks.


Alinti Piotr Zarzycki 


Serkan,

Are you going to update that PR - that's what you mean ? If something is
not fully understandable let me know. Just add comment on GitHub.

Thanks, Piotr

2018-05-14 15:30 GMT+02:00 :



Thanks Piotr,

I agree with you with the comments about Wrappers to be compiled with
JS-ONLY directives,
not clear with the others as I am not experienced on the codebase.

I am going to work on Base64Decoder while waiting for the PR confirmed.


Serkan.

Alinti Piotr Zarzycki 

Serkan,


I'm sorry about that. You should now see the comments.

Piotr

2018-05-13 23:14 GMT+02:00 Serkan Taş :

Thanks Piotr,


Can you please share your comments with me also, cause i can not see them
on github (may be i am missing something)

I am looking forward.
Serkan

13.05.2018 13:57 tarihinde Piotr Zarzycki yazdı:

Hi Serkan,

I just finished review of your pull request. I have added bunch of
comments. It would be great to have some insight from other PMCs, cause
I'm
not sure about some things.

Thanks,
Piotr

2018-05-10 20:46 GMT+02:00 Serkan Taş :

Sure that it is working with the test application but i'll give a try to

have wrappers and than create PR.

10.05.2018 10:29 tarihinde Alex Harui yazdı:

Hi Serkan,



Does that mean you have a working mx.utils.Base64Encoder?  If so, that’s
great news!  Please file a Pull Request with your code.



Thanks,

-Alex



*From: *Serkan Taş 

*Reply-To: *"users@royale.apache.org" 
 
*Date: *Wednesday, May 9, 2018 at 10:00 PM
*To: *"users@royale.apache.org" 
 
*Subject: *Re:  is being broken by the compiler



Hi Piotr and Alex,

Piotr;

I worked on your code and it was starting point of my implementation.
Tank you so much.

Alex,

I now see the that i missed meaning of  "has to go in the ASDoc for the
constructor"   in your mail belongs to previous thread.

Sorry for misunderstanding and thank you for your clarification.

To show the point mixed up my mind for your referance :

NOT Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079891578&sdata=C%2B1tfD48vUt6aKupj
D0fqk5vBWmxYtWCRUFnFuHh6zw%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079901586&sdata=NxNZD3qfIJU
HbeOcWHaw5uSwa8GwetCbJ%2FnqOm6jOkw%3D&reserved=0>
>
 * 
 */
*/** */*
public function BaseTester()
{
}
}
}

Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079911594&sdata=3sGjeKNub2rLOajGVQj
8iHWjYRWQlzZeYWnCLJ9Dwr4%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079921602&sdata=tyYxIkfE7qs
WHf43tQ9%2BlI7RkGULPGyWhPCxEqiP2hk%3D&reserved=0>
>
 * 
 */
public function BaseTester()
{
}
}
}



10.05.2018 01:04 tarihinde Alex Harui yazdı:

Hi Serkan,



It is hard to tell from your description what you are trying, but as I
mentioned in the other thread, the  must be in an ASDoc
comment for the constructor function of a cl

Re: is being broken by the compiler



Alinti Piotr Zarzycki 


Serkan,

Are you going to update that PR - that's what you mean ? If something is
not fully understandable let me know. Just add comment on GitHub.

Thanks, Piotr

2018-05-14 15:30 GMT+02:00 :



Thanks Piotr,

I agree with you with the comments about Wrappers to be compiled with
JS-ONLY directives,
not clear with the others as I am not experienced on the codebase.

I am going to work on Base64Decoder while waiting for the PR confirmed.


Serkan.

Alinti Piotr Zarzycki 

Serkan,


I'm sorry about that. You should now see the comments.

Piotr

2018-05-13 23:14 GMT+02:00 Serkan Taş :

Thanks Piotr,


Can you please share your comments with me also, cause i can not see them
on github (may be i am missing something)

I am looking forward.
Serkan

13.05.2018 13:57 tarihinde Piotr Zarzycki yazdı:

Hi Serkan,

I just finished review of your pull request. I have added bunch of
comments. It would be great to have some insight from other PMCs, cause
I'm
not sure about some things.

Thanks,
Piotr

2018-05-10 20:46 GMT+02:00 Serkan Taş :

Sure that it is working with the test application but i'll give a try to

have wrappers and than create PR.

10.05.2018 10:29 tarihinde Alex Harui yazdı:

Hi Serkan,



Does that mean you have a working mx.utils.Base64Encoder?  If so, that’s
great news!  Please file a Pull Request with your code.



Thanks,

-Alex



*From: *Serkan Taş 

*Reply-To: *"users@royale.apache.org" 
 
*Date: *Wednesday, May 9, 2018 at 10:00 PM
*To: *"users@royale.apache.org" 
 
*Subject: *Re:  is being broken by the compiler



Hi Piotr and Alex,

Piotr;

I worked on your code and it was starting point of my implementation.
Tank you so much.

Alex,

I now see the that i missed meaning of  "has to go in the ASDoc for the
constructor"   in your mail belongs to previous thread.

Sorry for misunderstanding and thank you for your clarification.

To show the point mixed up my mind for your referance :

NOT Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079891578&sdata=C%2B1tfD48vUt6aKupj
D0fqk5vBWmxYtWCRUFnFuHh6zw%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079901586&sdata=NxNZD3qfIJU
HbeOcWHaw5uSwa8GwetCbJ%2FnqOm6jOkw%3D&reserved=0>
>
 * 
 */
*/** */*
public function BaseTester()
{
}
}
}

Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%
2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1
e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178d
ecee1%7C0%7C0%7C636615252079911594&sdata=3sGjeKNub2rLOajGVQj
8iHWjYRWQlzZeYWnCLJ9Dwr4%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%
2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%
2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.
com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794a
ed2c178decee1%7C0%7C0%7C636615252079921602&sdata=tyYxIkfE7qs
WHf43tQ9%2BlI7RkGULPGyWhPCxEqiP2hk%3D&reserved=0>
>
 * 
 */
public function BaseTester()
{
}
}
}



10.05.2018 01:04 tarihinde Alex Harui yazdı:

Hi Serkan,



It is hard to tell from your description what you are trying, but as I
mentioned in the other thread, the  must be in an ASDoc
comment for the constructor function of a class.  You can't put  
it anywhere

in the class file.



Show us the co

Re: is being broken by the compiler



Thanks Piotr,

I agree with you with the comments about Wrappers to be compiled with  
JS-ONLY directives,

not clear with the others as I am not experienced on the codebase.

I am going to work on Base64Decoder while waiting for the PR confirmed.


Serkan.

Alinti Piotr Zarzycki 


Serkan,

I'm sorry about that. You should now see the comments.

Piotr

2018-05-13 23:14 GMT+02:00 Serkan Taş :


Thanks Piotr,

Can you please share your comments with me also, cause i can not see them
on github (may be i am missing something)

I am looking forward.
Serkan

13.05.2018 13:57 tarihinde Piotr Zarzycki yazdı:

Hi Serkan,

I just finished review of your pull request. I have added bunch of
comments. It would be great to have some insight from other PMCs, cause I'm
not sure about some things.

Thanks,
Piotr

2018-05-10 20:46 GMT+02:00 Serkan Taş :


Sure that it is working with the test application but i'll give a try to
have wrappers and than create PR.

10.05.2018 10:29 tarihinde Alex Harui yazdı:

Hi Serkan,



Does that mean you have a working mx.utils.Base64Encoder?  If so, that’s
great news!  Please file a Pull Request with your code.



Thanks,

-Alex



*From: *Serkan Taş 

*Reply-To: *"users@royale.apache.org" 
 
*Date: *Wednesday, May 9, 2018 at 10:00 PM
*To: *"users@royale.apache.org" 
 
*Subject: *Re:  is being broken by the compiler



Hi Piotr and Alex,

Piotr;

I worked on your code and it was starting point of my implementation.
Tank you so much.

Alex,

I now see the that i missed meaning of  "has to go in the ASDoc for the
constructor"   in your mail belongs to previous thread.

Sorry for misunderstanding and thank you for your clarification.

To show the point mixed up my mind for your referance :

NOT Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636615252079891578&sdata=C%2B1tfD48vUt6aKupjD0fqk5vBWmxYtWCRUFnFuHh6zw%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Frawgit.com%2Fcoolaj86%2FTextEncoderLite%2Fmaster%2Ftext-encoder-lite.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636615252079901586&sdata=NxNZD3qfIJUHbeOcWHaw5uSwa8GwetCbJ%2FnqOm6jOkw%3D&reserved=0>
>
 * 
 */
*/** */*
public function BaseTester()
{
}
}
}

Working Code :

package mx.utils
{

public class BaseTester
{

/**
 * The Royale Compiler will inject html into the index.html
file.  Surround with
 * "inject_html" tag as follows:
 *
 * 
 * http://rawgit.com/beatgam
mit/base64-js/master/base64js.min.js"
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Frawgit.com%2Fbeatgammit%2Fbase64-js%2Fmaster%2Fbase64js.min.js&data=02%7C01%7Caharui%40adobe.com%7Ce1e62544018643f6683b08d5b632e1a5%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636615252079911594&sdata=3sGjeKNub2rLOajGVQj8iHWjYRWQlzZeYWnCLJ9Dwr4%3D&reserved=0>
>
 * http://rawgit.com/coolaj8
6/TextEncoderLite/master/text-encoder-lite.min.js"
<Re: Work on Emulation



Alex, Greg;

Thank you for the clarification. I better prefer to implement the JS  
part with more powerful ones and leave SWF part as is.


Let's see how it goes.

Thnaks,
Serkan

Quoting Alex Harui :


Hi Serkan,

Well, it isn't that what you did wasn't "right".  It was right for  
the SWF implementation, but the emulation still needs an actual JS  
implementation.  For other emulation components we are just getting  
the JS compile to complete without error and worry about the working  
implementation later, but since these encoders are relatively  
independent you might as well decide on the JS implementation now.


Thanks,
-Alex

From: Serkan Taş  
mailto:serkan@likyateknoloji.com>>
Reply-To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Date: Tuesday, April 17, 2018 at 2:22 PM
To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Subject: Re: Work on Emulation


Alex,

after putting flash.utils.ByteArray input and related function into  
COMPILE:SWF blocks both objects compiles without error.


from your comment i see that this is not the right way.

I am going to work on two alternatives;

1. To switch the internals of a component that uses ByteArray to BinaryData

2. Find a different implementation for JS (  
https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_–_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8)


Thanks.

18.04.2018 00:11 tarihinde Alex Harui yazdı:
Just to be sure we're all in sync:

Folks using flash classes in their apps will have to replace them.   
We've created an mx.system.ApplicationDomain to replace  
flash.system.ApplicationDomain since this first round of emulations  
isn't really going to support ApplicationDomains.  And  
flash.utils.ByteArray should be replaceable by  
org.apache.royale.utils.BinaryData.


Folks creating emulation components can choose to switch the  
internals of a component that uses ByteArray to BinaryData, or come  
up with a different implementation for JS.  And in this case, there  
might be some good alternatives.  See:  
https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_2_–_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8


Either way is fine for now.

-Alex

From: Greg Dove mailto:greg.d...@gmail.com>>
Reply-To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Date: Tuesday, April 17, 2018 at 2:00 PM
To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Subject: Re: Work on Emulation


Sounds like you figured it out, great! And yes, BinaryData has that  
same approach.


There are probably much easier and faster ways to do the base64  
conversion directly in COMPILE::JS blocks, so I maybe you will use  
those for js.




On Wed, Apr 18, 2018 at 8:55 AM, Serkan Taş  
mailto:serkan@likyateknoloji.com>>  
wrote:


Thanks Greg,

I checked the documentation;

The internal implementation can still use flash.*.* if it is in  
COMPILE::SWF blocks.


And the BinarayData.as has also the same approach.

Serkan.

17.04.2018 23:51 tarihinde Greg Dove yazdı:
Hi Serken, you could try using the BinaryData class, it has many of  
the same methods that ByteArray has




On Wed, Apr 18, 2018 at 8:39 AM, Serkan Taş  
mailto:serkan@likyateknoloji.com>>  
wrote:

Hi,

When working on Base64Encoder.as, it seems that without  import  
flash.utils.ByteArray it is not so useful. I tought, there should be  
equivalent in royale for this basic object type.


otherwise removing this import, nearly means removing the object   
Base64Encoder.


am i wrong ?

17.04.2018 23:11 tarihinde Serkan Taş yazdı:
Hi Alex,

We can work this way, i do not need permission to edit the issue anymore.
Ant the compile errors are gone :
In folder royale-asjs :
git pull
mvn clean install
in folder M

Re: MXRoyale build problem



Hi Alex,

When i chekck the pom.xml of MXRoyale on github, i see that the  
version is 0.9.2 is it normal ?


And here is the output of mvn clean install of royale-asjs

**

hostname:~/royale/royale-asjs$ mvn clean install
[WARNING] The POM for  
org.apache.flex.utilities.converter:flex-sdk-converter-maven-extension:jar:1.0.0-SNAPSHOT is missing, no dependency information  
available
[WARNING] Failed to read extensions descriptor  
/royale/royale-asjs/.mvn/extensions.xml: Plugin  
org.apache.flex.utilities.converter:flex-sdk-converter-maven-extension:1.0.0-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact  
org.apache.flex.utilities.converter:flex-sdk-converter-maven-extension:jar:1.0.0-SNAPSHOT

[INFO] Scanning for projects...
[INFO]  


[INFO] Reactor Build Order:
[INFO]
[INFO] Apache Royale: Framework: Parent 
   [pom]
[INFO] Apache Royale: Framework 
   [pom]
[INFO] Apache Royale: Framework: Fonts  
   [war]
[INFO] Apache Royale: Framework: Libs   
   [pom]
[INFO] Apache Royale: Framework: Libs: Core 
   [swc]
[INFO] Apache Royale: Framework: Libs: Binding  
   [swc]
[INFO] Apache Royale: Framework: Libs: Collections  
   [swc]
[INFO] Apache Royale: Framework: Libs: Graphics 
   [swc]
[INFO] Apache Royale: Framework: Libs: Basic
   [swc]
[INFO] Apache Royale: Framework: Libs: Charts   
   [swc]
[INFO] Apache Royale: Framework: Libs: Effects  
   [swc]
[INFO] Apache Royale: Framework: Libs: CreateJS 
   [swc]
[INFO] Apache Royale: Framework: Libs: DragDrop 
   [swc]
[INFO] Apache Royale: Framework: Libs: Express  
   [swc]
[INFO] Apache Royale: Framework: Libs: Flat 
   [swc]
[INFO] Apache Royale: Framework: Libs: Formatters   
   [swc]
[INFO] Apache Royale: Framework: Libs: FontAwesome  
   [swc]
[INFO] Apache Royale: Framework: Libs: GoogleMaps   
   [swc]
[INFO] Apache Royale: Framework: Libs: HTML 
   [swc]
[INFO] Apache Royale: Framework: Libs: HTML5
   [swc]
[INFO] Apache Royale: Framework: Libs: JQuery   
   [swc]
[INFO] Apache Royale: Framework: Libs: Language 
   [swc]
[INFO] Apache Royale: Framework: Libs: Material Design Lite 
   [swc]
[INFO] Apache Royale: Framework: Libs: Mobile   
   [swc]
[INFO] Apache Royale: Framework: Libs: Reflection   
   [swc]
[INFO] Apache Royale: Framework: Libs: Network  
   [swc]
[INFO] Apache Royale: Framework: Libs: Storage  
   [swc]
[INFO] Apache Royale: Framework: Libs: XML  
   [swc]
[INFO] Apache Royale: Framework: Libs: Text 
   [swc]
[INFO] Apache Royale: Framework: Libs: TLF  
   [swc]
[INFO] Apache Royale: Framework: Libs: RoyaleSite   
   [swc]
[INFO] Apache Royale: Framework: Libs: MXRoyale 
   [swc]
[INFO] Apache Royale: Framework: Libs: Jewel
   [swc]
[INFO] Apache Royale: Framework: Themes 
   [pom]
[INFO] Apache Royale: Framework: Themes: Basic  
   [swc]
[INFO] Apache Royale: Framework: Themes: JewelTheme 
   [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Primary-Blue-Theme [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Secondary-Blue-Theme [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Emphasized-Blue-Theme [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Primary-Topaz-Theme [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Secondary-Topaz-Theme [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Emphasized-Topaz-Theme [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Primary-Emerald-Theme [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Secondary-Emerald-Theme [swc]
[INFO] Apache Royale: Framework: Themes:  
Jewel-Light-NoFlat-Emphasized-Emerald-Theme [swc]
[INFO] Apache Royale: Framework: Archetypes 
   [pom]
[INFO] Apache Royale: Framework: Archetypes: Simple Royale Application  
   [jar]
[INFO] Apache Royale: Framework: Archetypes: Simple Royale Pure-JS  
Application [jar]
[IN

Re: MXRoyale build problem



I discovered that the issue is related with OS settings.

After trying on a linux box, compilation(royale-typedefs,  
royale-compiler, royale-asjs/.../MXRoyale) completed with success.  
(royale-asjs all has terminates on mobile things)


I am working on it to be able to compile on my windows.

Thanks
Serkan

Quoting Serkan Taş :


typedefs and the compiler was ok before but asjs/MXRoyale still has errors :

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\CSSImageAndTextButtonView.as(122): col: 27 Error: Call to a possibly  
undefined

 method $addChild through a reference with static type UIBase.

    UIBase(value).$addChild(upSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\CheckBoxView.as(132): col: 27 Error: Call to a possibly undefined method  
$addC

hild through a reference with static type UIBase.

    UIBase(value).$addChild(upSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\CheckBoxView.as(236): col: 33 Error: Call to a possibly undefined method  
$addC

hild through a reference with static type UIBase.

    UIBase(_strand).$addChild(upAndSelectedSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\CheckBoxView.as(244): col: 33 Error: Call to a possibly undefined method  
$addC

hild through a reference with static type UIBase.

    UIBase(_strand).$addChild(upSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\RadioButtonView.as(133): col: 27 Error: Call to a possibly undefined method  
$a

ddChild through a reference with static type UIBase.

    UIBase(value).$addChild(upSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\RadioButtonView.as(134): col: 27 Error: Call to a possibly undefined method  
$a

ddChild through a reference with static type UIBase.

    UIBase(value).$addChild(downSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\RadioButtonView.as(135): col: 27 Error: Call to a possibly undefined method  
$a

ddChild through a reference with static type UIBase.

    UIBase(value).$addChild(overSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\RadioButtonView.as(136): col: 27 Error: Call to a possibly undefined method  
$a

ddChild through a reference with static type UIBase.

    UIBase(value).$addChild(upAndSelectedSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\RadioButtonView.as(137): col: 27 Error: Call to a possibly undefined method  
$a

ddChild through a reference with static type UIBase.

    UIBase(value).$addChild(downAndSelectedSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\controls\beads\RadioButtonView.as(138): col: 27 Error: Call to a possibly undefined method  
$a

ddChild through a reference with static type UIBase.

    UIBase(value).$addChild(overAndSelectedSprite);
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\core\Application.as(358): col: 19 Error: Access of possibly undefined property  
$parent.


    var p:* = $parent;
  ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\core\UIComponent.as(56): col: 8 Warning: Definition org.apache.royale.core.TextLineMetrics  
co

uld not be found.

import org.apache.royale.core.TextLineMetrics;
   ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\core\UIComponent.as(1147): col: 25 Error: Overriding a function that is not marked for  
overri

de

    public function get measuredWidth():Number
    ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\core\UIComponent.as(1163): col: 25 Error: Overriding a function that is not marked for  
overri

de

    public function set measuredWidth(value:Number):void
    ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\core\UIComponent.as(1189): col: 25 Error: Overriding a function that is not marked for  
overri

de

    public function get measuredHeight():Number
    ^

D:\dev\git\emulation_works\royale-asjs\frameworks\projects\MXRoyale\src\main\royale\mx\core\UIComponent.as(1205): col: 25 Error: Overriding a fu

Re: MXRoyale build problem



Quoting Serkan Taş :


I realised that issue but tought it is normal...

Here is th branch info...


D:\dev\git\emulation_works\royale-asjs>git status
On branch feature/MXRoyale
Your branch is up to date with 'origin/feature/MXRoyale'.

nothing to commit, working tree clean

D:\dev\git\emulation_works\royale-asjs>cd ..

D:\dev\git\emulation_works>cd royale-compiler

D:\dev\git\emulation_works\royale-compiler>git status
On branch develop
Your branch is up to date with 'origin/develop'.

nothing to commit, working tree clean

D:\dev\git\emulation_works\royale-compiler>cd ..

D:\dev\git\emulation_works>cd royale-typedefs

D:\dev\git\emulation_works\royale-typedefs>git status
On branch develop
Your branch is up to date with 'origin/develop'.

nothing to commit, working tree clean

D:\dev\git\emulation_works\royale-typedefs>


08.04.2018 15:21 tarihinde Piotr Zarzycki yazdı:
Are you sure that you are on the right branch in case of  
royale-asjs. You have been asked in the stack traces for  
0.9.2-SNAPSHOT version. It should be 0.9.3-SNAPSHOT


I think in order to work on emulation you have to be:

royale-compiler - develop branch
royale-typedefs - develop branch
royale-asjs - feature/MXRoyale

Are you using those branches ?

Thanks,
Piotr

2018-04-08 14:12 GMT+02:00 Serkan Taş  
>:


   I prefer mvn Piotr,

   I first compiled the typedefs and compiler successfuly as Alex 
   informed but i got the same error as earlier.

   and here is the report :

   cd royale-typedefs

   mvn clean   : success
   mvn install : success


**


   (due to the bug in code generator - related to locale dependent
   capitalizing u-case i to İ - I had to change the jvm params)

   cd royale-compiler

   mvn clean -Djvm.options="-Duser.country=EN -Duser.language=en" :
   success

   mvn install -Djvm.options="-Duser.country=EN -Duser.language=en"

   Tests run: 1145, Failures: 4, Errors: 6, Skipped: 4

   [INFO]
   
   [INFO] Reactor Summary:
   [INFO]
   [INFO] Apache Royale: Compiler: Parent 0.9.3-SNAPSHOT .
   SUCCESS [  4.600 s]
   [INFO] Apache Royale: Compiler: Compiler-Common ...
   SUCCESS [  6.545 s]
   [INFO] Apache Royale: Compiler: Test Utils 
   SUCCESS [  1.344 s]
   [INFO] Apache Royale: Compiler: Externc ...
   SUCCESS [ 16.432 s]
   [INFO] Apache Royale: Compiler: Compiler ..
   SUCCESS [02:26 min]
   [INFO] Apache Royale: Compiler: Compiler-JX ...
   FAILURE [ 49.945 s]
   [INFO] Apache Royale: Compiler: SWFUtils .. SKIPPED
   [INFO] Apache Royale: Compiler: Debugger .. SKIPPED
   [INFO] Apache Royale: Compiler: OEM Layer . SKIPPED
   [INFO] Apache Royale: Royale Ant Tasks  SKIPPED
   [INFO] Apache Royale: Royale Maven Plugin 0.9.3-SNAPSHOT .. SKIPPED
   [INFO]
   
   [INFO] BUILD FAILURE
   [INFO]
   
   [INFO] Total time: 03:46 min
   [INFO] Finished at: 2018-04-08T14:56:46+03:00
   [INFO]
   
   [ERROR] Failed to execute goal
   org.apache.maven.plugins:maven-surefire-plugin:2.19:test
   (default-test) on project compiler-jx: There are test failures.
   [ERROR]
   [ERROR] Please refer to

D:\dev\git\emulation_works\royale-compiler\compiler-jx\target\surefire-reports

   for the individual test results.
   [ERROR] -> [Help 1]
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven
   with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug
   logging.
   [ERROR]
   [ERROR] For more information about the errors and possible
   solutions, please read the following articles:
   [ERROR] [Help 1]
   http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
   
   [ERROR]
   [ERROR] After correcting the problems, you can resume the build
   with the command
   [ERROR]   mvn  -rf :compiler-jx


   *I added params to skip tests*

   mvn -DskipTests -Drat.skip=true clean
   -Djvm.options="-Duser.country=EN -Duser.language=en" : success

   mvn -DskipTests -Drat.skip=true install
   -Djvm.options="-Duser.country=EN -Duser.language=en" : success


**


   D:\dev\git\emulation_works>cd royale-asjs

   D:\dev\git\emulation_works\royale-asjs>mvn clean

   [WARNING] The POM for

org.apache.flex.utilities.converter:flex-sdk-converter-maven-extension:jar:1.0.0-SNAPSHOT

   is missing, no dependency infor

Re: api-report



Hi Alex,

Top tag in mxml :


http://ns.adobe.com/mxml/2009";
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx"
   xmlns:comps="com.likya.pinara.comps.*"
   xmlns:containers="com.likya.pinara.containers.*"
   xmlns:jobdetail="com.likya.pinara.comps.jobdetail.*"
   currentState="loggedOutState"
   
preloader="com.likya.pinara.utils.DownloadProgressBarSubClassMin"
   minWidth="955" minHeight="600"
   
creationComplete="application_creationCompleteHandler()"
   
xmlns:jobmanager="com.likya.pinara.services.jobmanager.*"
   xmlns:userops="com.likya.pinara.services.userops.*">


I will try putting file at the end  and inform you Alex, thanx


Quoting Alex Harui :


Hi Serkan,

What is the top tag in PinaraUI.mxml?

Try putting the PinaraUI.mxml file last in the list of compiler  
options.  Put all of the other options first.


Thanks,
-Alex

From: Serkan Taş  
mailto:serkan@likyateknoloji.com>>
Reply-To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Date: Sunday, March 11, 2018 at 8:10 AM
To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Subject: Fwd: Re: api-report



Hi Alex,

Please find the batch script below named genrep.bat and th console  
output log.txt


https://drive.google.com/open?id=1DYvI_7JzOYV0SNq9Q1SqZmUdlOMeBWuo

https://drive.google.com/open?id=1z91Y_flnVSAN4cYO0R-nqbOm6Qg_mNhH


11.03.2018 18:10 tarihinde Alex Harui yazdı:
Hi Serkan,

To generate the api-report, you will need to use the Royale compiler  
with the flex-config.xml from the same Flex SDK as you used with the  
Flex compiler.


Post the console output that includes what you typed on the command  
line.  Using the CFGFILE variables you showed below you would  
probably have to prefix the drive and folders leading up toe "Adobe  
Flash Builder".


HTH,
-Alex

From: Serkan Taş  
mailto:serkan@likyateknoloji.com>>
Reply-To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Date: Sunday, March 11, 2018 at 3:08 AM
To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Subject: Re: api-report


Hi Alex,

(for royale) set CFGFILE="Apache  
Royale\apache-flex-sdk-4.16.1-bin\frameworks\flex-config.xml"
(for adobe) set CFGFILE="Adobe Flash Builder 4.7 (64  
Bit)\sdks\4.6.0\frameworks\flex-config.xml"



I tought that the config file depends on sdk, changed it to adobe  
cfg and  got same result.


PinaraUI.mxml is an mxml file and the main file of application, i  
mean starting point.


11.03.2018 10:23 tarihinde Alex Harui yazdı:
Hi Serkan,

Why is the load-config different?  I would think the Royale compiler  
would need the same -load–config option.


Is PinaraUI.mxml an application?  If it is a SWC, I would use COMPC  
instead of MXMLC.


HTH,
-Alex

From: Serkan Taş  
mailto:serkan@likyateknoloji.com>>
Reply-To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Date: Saturday, March 10, 2018 at 10:13 AM
To: "users@royale.apache.org"  
mailto:users@royale.apache.org>>

Subject: Re: api-report


Hi Alex,

I worked on mxmlc and successfully generate adobe Flex file swf with  
the command below : (all env vars predefined not included in maiş to  
simplfy)


%ADOBEPATH%mxmlc PinaraUI/src/com/likya/pinara/main/PinaraUI.mxml  
-external-library-path=%PNRLIBS%,%FIBERSWC%,%PLAYERGLBSWC%,%SERSWC%  
-source-path=PinaraUI/src,PinaraUI/locale/{locale}   
-services=Pinara-0.0.1/WEB-INF/flex/services-config.xml   
-load-config="D:\dev\Adobe\Adobe Flash Builder 4.7 (64  
Bit)\sdks\4.6.0\frameworks\flex-config.xml" -o .\PinaraUI.swf


I tried the same way for royale (only added api-report parameter)

%ROYALEPATH%mxmlc PinaraUI/src/com/likya/pinara/main/PinaraUI.mxml  
-api-report="report.txt"  
-external-library-path=%PNRLIBS%,%FIBERSWC%,%PLAYERGLBSWC%,%SERSWC%  
-source-path=PinaraUI/src,PinaraUI/locale/{locale}   
-services=Pinara

ap-report





Please find the script, report and errors at below link


https://drive.google.com/drive/folders/1lHTGgOjbFTRgwLWERJ67EHxuogd52Je5?usp=sharing


--
Serkan Taş
Mobil : +90 532 250 07 71
Likya Bilgi Teknolojileri
ve İletişim Hiz. Ltd. Şti.
www.likyateknoloji.com

--
Bu elektronik posta ve onunla iletilen bütün dosyalar gizlidir. Sadece  
yukarıda isimleri belirtilen kişiler arasında özel haberleşme amacını  
taşımaktadır. Size yanlışlıkla ulaşmışsa bu elektonik postanın  
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız  
kesinlikle yasaktır. Lütfen mesajı geri gönderiniz ve sisteminizden  
siliniz. Likya Bilgi Teknolojileri ve İletişim Hiz. Ltd. Şti. bu  
mesajın içeriği ile ilgili olarak hiç bir hukuksal sorumluluğu kabul  
etmez.


This electronic mail and any files transmitted with it are intended  
for the private use of  the persons named above. If you received this  
message in error, forwarding, copying or use of any of the information  
is strictly prohibited. Please immediately notify the sender and  
delete it from your system. Likya Bilgi Teknolojileri ve İletişim Hiz.  
Ltd. Şti. does not accept legal responsibility for the contents of  
this message.

--



Re: Substitutes in Apache Royale



Then is it possible to change the sdk of FlexBuilder to Royale and use ?

Quoting Piotr Zarzycki :


Alex,

Are you saying that our SWF compiler is capable to compile Flex app?
Wow didn't know. I thought everything what is written in Royale doesn't
understand Flex. :)

Piotr

On Mon, Feb 19, 2018, 08:35 Alex Harui  wrote:


Hi Alina,

What I'm asking is that you take your original code without porting it at
all and run the Royale Compiler's SWF compiler.  It should be able to
produce the same SWF you are deploying now.  It might catch errors that the
Flex MXMLC compiler does not catch.  We need a successful SWF output so we
know the compiler visited all APIs.  Once you can get a SWF out, then later
I will provide you with an updated Royale SWF compiler that will also
output an API usage report.

Thanks,
-Alex

From: Alina Kazi 
Reply-To: "users@royale.apache.org" 
Date: Sunday, February 18, 2018 at 10:37 PM

To: "users@royale.apache.org" 
Subject: RE: Substitutes in Apache Royale

Hi Alex,



Sure,

I’m compiling the code with the royale compiler. Porting basic components
that are available in Royale.



Thanks

Alina



*From:* Alex Harui [mailto:aha...@adobe.com ]
*Sent:* Monday, February 19, 2018 11:16 AM


*To:* users@royale.apache.org
*Subject:* Re: Substitutes in Apache Royale



Hi Alina,



While I work on the compiler API report feature, you could start now
trying to get your code to compile with the royale compiler from the
command line.  I think you can run the bin/mxmlc from the Royale releases
with the same options you use with Flex MXMLC.



Give it a try and let us know.

-Alex



*From: *Alina Kazi 
*Reply-To: *"users@royale.apache.org" 
*Date: *Sunday, February 18, 2018 at 8:29 PM
*To: *"users@royale.apache.org" 
*Subject: *RE: Substitutes in Apache Royale



Hi Alex,



I’ll be waiting for your response.



Thanks,

Alina





*From:* Alex Harui [mailto:aha...@adobe.com ]
*Sent:* Friday, February 16, 2018 2:02 AM
*To:* users@royale.apache.org
*Subject:* Re: Substitutes in Apache Royale



Hi Alina,



I can't guarantee that you will be in production in six months, but I
believe we can help you get to the point where every screen shows up and
fills with data and we are fixing bugs in corner cases.   We might also be
chasing down memory leaks and things like that.My strategy for lots of
things is to do the big things first and polish it later.  For example, I
recently pushed some basic Virtual Item Renderer support for Royale, but
I'm pretty sure it will have bugs in corner cases, like deleting things
when scrolled to the bottom.  But most apps start at the top and it will
get you going and we'll fix those corner cases later.



I want to finish up some infrastructural things in Royale over the next
couple of weeks, then I will adjust the compiler to generate an API
report.  Once we see what that looks like, I  should be able to help take
the sample code you provided and make it work in Royale.  So maybe in a
month or so, you'll see more activity around your code.  Right now I need
to clean up a few things so we can be more efficient working with you.



You won't need an IDE to generate the API report.  If you know what
compiler settings you are using for your Flex app, you can just run a
Royale compiler from the command-line with the same arguments.  I believe
that we are likely to make compiling your Flex app with the Royale compiler
one of the steps in migrating. The Royale compiler will catch some syntax
issues that the Flex compiler does not.



More later,

-Alex



*From: *Alina Kazi 
*Reply-To: *"users@royale.apache.org" 
*Date: *Thursday, February 15, 2018 at 2:13 AM
*To: *"users@royale.apache.org" 
*Subject: *RE: Substitutes in Apache Royale



Hi Alex,

Thank you so much. You gave me hope that I can achieve my target on time
and at least I am working in right direction.

At most places I'm using getItemAt(0) to access the element in
ArrayCollection.

At some places myArrayCollection[0].propertyname  to access it



If you will modify the Royale compiler, I will definitely try compiling my
Flex app with the Royale compiler and generate a report of APIs used.

Currently I am using Visual Studio Code and apache royale 0.9.0 release is
installed.I will need your guidance which IDE and apache royale release
should I use to generate that report.



Thanks,

Alina Kazi

*From:* Alex Harui [mailto:aha...@adobe.com ]
*Sent:* Thursday, February 15, 2018 1:40 PM
*To:* users@royale.apache.org
*Subject:* Re: Substitutes in Apache Royale



Hi Alina,



Other than ArrayCollection, that looks right.  There will be sorting
classes eventually.



I think there are two buckets of things that you are going to need:



Things we haven't written yet:

  - DividedBox/Container (mostly done)

 - Menu/MenuBar

 - VariableRowHeight

 - Editable DataGrids

 - Sorting?



Things we have written, but aren't packaged in a way that makes migration
easy:

 - TitleWindow

 - Canvas

 - ArrayCollection