dummy question about Jewel Alert

2023-10-16 Thread contact

Hi all,

Is there a way to change "YES" and "NO" label when calling 
Alert.show(...,,Alert.YES | Alert.NO) for Jewel componant.


Looking at code there is no "Alert.yesLabel" property like on mx 
componant.


There is a set yesLabel in Jewel AlertModel.as.

But how to give an AlertModel when calling Alert.show ?

Do y miss something ?

Re: BinaryUploader issue

2023-09-25 Thread contact

fix done : https://github.com/apache/royale-asjs/pull/1235

Proposed file is changing  2 things :
- Don't use String utf8 to send datas, instead use typedArray as 
XMLHttpRequest can handle this.
- Call _binaryData.toString() instead _binaryData.data.toString() if 
used on GET method (not tested)


Le 2023-09-25 15:14, Piotr Zarzycki a écrit :

Anyone is using this class in their real world projects and can tests ? 
I

don't think we are using this one in our projects but I will check.

pon., 25 wrz 2023 o 14:03  napisał(a):

Hi Maria,

Thanks for your reply.

I just discovered new issue with BinaryUploader .

With the fix, it can send real datas instead of "[object ArrayBuffer]" 
.


This is working right with text files, but it's not working right with
some bytes. For exemple a file with 0xc0 inside will be wrong encoded 
by

the TextEncoder('utf8').

To solve that as XMLHttpRequest can send typed array
(
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data#sending_typed_arrays_as_binary_data),

there is no need to convert to utf8 string,

So sending this :

element.send(_binaryData.array);
instead of

element.send(binaryData);
(line 610)
will solve this other issue.

I will make another PR, grouping theses 2 fixs

Fred

Le 2023-09-25 13:41, Maria Jose Esteve a écrit :

Hi,
If that's okay with you, let's let the colleagues who have touched this
part of the SDK give their opinion. If everything is fine for them, I
can accept the PR myself.

Hiedra

-Mensaje original-
De: cont...@cristallium.com 
Enviado el: lunes, 25 de septiembre de 2023 9:01
Para: dev@royale.apache.org
Asunto: Re: BinaryUploader issue

Hi,

I have make a PR to fix the issue
(https://github.com/apache/royale-asjs/pull/1234)

Could you merge it ?

Thanks

Le 2023-09-21 10:34, cont...@cristallium.com a écrit :

Hi All,

I try to send binary data with BinaryUploader .

In short I do this :

var ba:BinaryData = new BinaryData();
ba.writeByte(255);
ba.writeByte(256);
ba.writeByte(-256);

ba.position = 0;

var bup:BinaryUploader = new BinaryUploader(); bup.url =
"http://.;;

bup.method = HTTPConstants.POST;

bup.binaryData = ba;
bup.send();

This works fine except that I receive the following : "[object
ArrayBuffer]"

Looking at source of BinaryUploader.as, the issue is on line 577
:binaryData = _binaryData.data.toString()

_binaryData.data.toString() convert ArrayBuffer to "[object
ArrayBuffer]"

Do I miss something ?

Regards


--

Re: BinaryUploader issue

2023-09-25 Thread contact

Hi Maria,

Thanks for your reply.

I just discovered new issue with BinaryUploader .

With the fix, it can send real datas instead of "[object ArrayBuffer]" .

This is working right with text files, but it's not working right with 
some bytes. For exemple a file with 0xc0 inside will be wrong encoded by 
the TextEncoder('utf8').


To solve that as XMLHttpRequest can send typed array 
(https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data#sending_typed_arrays_as_binary_data), 
there is no need to convert to utf8 string,


So sending this :

element.send(_binaryData.array);
instead of

element.send(binaryData);
(line 610)
will solve this other issue.

I will make another PR, grouping theses 2 fixs

Fred

Le 2023-09-25 13:41, Maria Jose Esteve a écrit :


Hi,
If that's okay with you, let's let the colleagues who have touched this 
part of the SDK give their opinion. If everything is fine for them, I 
can accept the PR myself.


Hiedra

-Mensaje original-
De: cont...@cristallium.com 
Enviado el: lunes, 25 de septiembre de 2023 9:01
Para: dev@royale.apache.org
Asunto: Re: BinaryUploader issue

Hi,

I have make a PR to fix the issue
(https://github.com/apache/royale-asjs/pull/1234)

Could you merge it ?

Thanks

Le 2023-09-21 10:34, cont...@cristallium.com a écrit :


Hi All,

I try to send binary data with BinaryUploader .

In short I do this :

var ba:BinaryData = new BinaryData();
ba.writeByte(255);
ba.writeByte(256);
ba.writeByte(-256);

ba.position = 0;

var bup:BinaryUploader = new BinaryUploader(); bup.url =
"http://.;;

bup.method = HTTPConstants.POST;

bup.binaryData = ba;
bup.send();

This works fine except that I receive the following : "[object
ArrayBuffer]"

Looking at source of BinaryUploader.as, the issue is on line 577
:binaryData = _binaryData.data.toString()

_binaryData.data.toString() convert ArrayBuffer to "[object
ArrayBuffer]"

Do I miss something ?

Regards


--

Re: BinaryUploader issue

2023-09-25 Thread contact

Hi,

I have make a PR to fix the issue 
(https://github.com/apache/royale-asjs/pull/1234)


Could you merge it ?

Thanks

Le 2023-09-21 10:34, cont...@cristallium.com a écrit :


Hi All,

I try to send binary data with BinaryUploader .

In short I do this :

var ba:BinaryData = new BinaryData();
ba.writeByte(255);
ba.writeByte(256);
ba.writeByte(-256);

ba.position = 0;

var bup:BinaryUploader = new BinaryUploader();
bup.url = "http://.;;

bup.method = HTTPConstants.POST;

bup.binaryData = ba;
bup.send();

This works fine except that I receive the following : "[object 
ArrayBuffer]"


Looking at source of BinaryUploader.as, the issue is on line 577 
:binaryData = _binaryData.data.toString()


_binaryData.data.toString() convert ArrayBuffer to "[object 
ArrayBuffer]"


Do I miss something ?

Regards

Re: Rich media in Royale

2023-09-21 Thread contact

This is great ! Thanks for links
Fred

Le 2023-09-21 18:03, Maria Jose Esteve a écrit :


The integration with Echart is here [1 [1]]

[1] https://github.com/mjesteve/Royale-ECharts/tree/develop
Hiedra

De: Maria Jose Esteve 
Enviado el: jueves, 21 de septiembre de 2023 18:01
Para: dev@royale.apache.org
Asunto: RE: Rich media in Royale

Yes [1 [1]] I haven't updated it in a while, I sorry . If you have any 
problem let me know.


[1] https://github.com/mjesteve/royale-examples-community/tree/develop

Hiedra

De: cont...@cristallium.com 
mailto:cont...@cristallium.com>>

Enviado el: jueves, 21 de septiembre de 2023 17:24
Para: dev@royale.apache.org
Asunto: Re: Rich media in Royale

Hi Maria,
Would you have some samples to share of externals js or perhaps is 
there somes others than the highlightjs example that I miss ?


Fred

Le 2023-09-21 17:10, Maria Jose Esteve a écrit :
By the way,... +1 with cristallium, working with "externals" works very 
well; It depends a lot on how the JS implementation is made and/or 
compiled, but I have been able to do an acceptable job with libraries 
such as virtualselect, Echart, fullcalendar and mobiscroll.


Hiedra

De: cont...@cristallium.com 
mailto:cont...@cristallium.com>>

Enviado el: jueves, 21 de septiembre de 2023 14:24
Para: dev@royale.apache.org
Asunto: Re: Rich media in Royale

Hi Virginia,

As Maria said, Apache Royale has Audio and VideoPlayer with variable 
playrate in 0.9.10 version.


Tour de jewel (https://royale.apache.org/tourdejewel/) is not now up to 
date to see it.


You can find attached zip with tdj up to date and see by yourselft 
Audio and Video player usage.


For recording side, you can use external js capabilities of Apache 
Royale 
(https://royale.apache.org/blog/using-external-javascript-libraries-in-apache-royale/) 
to use javascript recording librarie from AS3.


Hope that will help you

Fred

Le 2023-09-19 10:35, Virginia Westwood a écrit :
Hi,

About 10 years ago, after working with First Nations Communities, I 
completed a Flex application (Flash) for Computer Assisted Language 
Learning for their Language (NYIKINA) - the first of its kind in the 
world. However, it was effectively killed by Adobe. I tried over 
several years to keep it going, trans-piling it, and using Flash 
players in browsers like BlueMoon. I also followed the Royale 
development closely and tried, before giving up as most of the 
development of classes and components seemed directed at business 
applications.


I am now trying again, as GitHub and websites consistently say that 
Royale supports Rich Media. But I am blowed if I can find any classes 
that do this.


Can you possibly help? Guide me to the classes I can use for audio 
(play and record) and video, vital to language learning.

Or confirm if it is not available? If it maybe, sometime?

Thanks

Virginia


Dr Virginia Westwood
Research Fellow (Intergenerational Cultural Transfer of Indigenous 
Knowledges)

Project Coordinator (ARC Linkage Grant)

I respectfully acknowledge the traditional custodians of the Country on 
which we live and work, and commit to building relationships, respect 
and opportunities together.


Nulungu Research Institute
The University of Notre Dame Australia
88 Guy St (PO Box 2287) Broome, Western Australia 6725
Phone (+61 8) 9192 0614
Mobile: 0408 971 446
Email: 
virginia.westw...@nd.edu.au>>>


Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby 
notified that any disclosure, copying, distribution or taking action in 
relation of the contents of this information is strictly prohibited and 
may be unlawful.


This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a 
Service (SaaS) for business. Providing a safer and more useful place 
for your human generated data. Specializing in; Security, archiving and 
compliance. To find out more visit the Mimecast website.


--


--



Links:
--
[1] https://github.com/mjesteve/royale-examples-community/tree/develop

Re: Rich media in Royale

2023-09-21 Thread contact

Hi Maria,
Would you have some samples to share of externals js or perhaps is there 
somes others than the highlightjs example that I miss ?


Fred

Le 2023-09-21 17:10, Maria Jose Esteve a écrit :

By the way,... +1 with cristallium, working with "externals" works very 
well; It depends a lot on how the JS implementation is made and/or 
compiled, but I have been able to do an acceptable job with libraries 
such as virtualselect, Echart, fullcalendar and mobiscroll.


Hiedra

De: cont...@cristallium.com 
Enviado el: jueves, 21 de septiembre de 2023 14:24
Para: dev@royale.apache.org
Asunto: Re: Rich media in Royale

Hi Virginia,

As Maria said, Apache Royale has Audio and VideoPlayer with variable 
playrate in 0.9.10 version.


Tour de jewel (https://royale.apache.org/tourdejewel/) is not now up to 
date to see it.


You can find attached zip with tdj up to date and see by yourselft 
Audio and Video player usage.


For recording side, you can use external js capabilities of Apache 
Royale 
(https://royale.apache.org/blog/using-external-javascript-libraries-in-apache-royale/) 
to use javascript recording librarie from AS3.


Hope that will help you

Fred

Le 2023-09-19 10:35, Virginia Westwood a écrit :
Hi,

About 10 years ago, after working with First Nations Communities, I 
completed a Flex application (Flash) for Computer Assisted Language 
Learning for their Language (NYIKINA) - the first of its kind in the 
world. However, it was effectively killed by Adobe. I tried over 
several years to keep it going, trans-piling it, and using Flash 
players in browsers like BlueMoon. I also followed the Royale 
development closely and tried, before giving up as most of the 
development of classes and components seemed directed at business 
applications.


I am now trying again, as GitHub and websites consistently say that 
Royale supports Rich Media. But I am blowed if I can find any classes 
that do this.


Can you possibly help? Guide me to the classes I can use for audio 
(play and record) and video, vital to language learning.

Or confirm if it is not available? If it maybe, sometime?

Thanks

Virginia


Dr Virginia Westwood
Research Fellow (Intergenerational Cultural Transfer of Indigenous 
Knowledges)

Project Coordinator (ARC Linkage Grant)

I respectfully acknowledge the traditional custodians of the Country on 
which we live and work, and commit to building relationships, respect 
and opportunities together.


Nulungu Research Institute
The University of Notre Dame Australia
88 Guy St (PO Box 2287) Broome, Western Australia 6725
Phone (+61 8) 9192 0614
Mobile: 0408 971 446
Email: 
virginia.westw...@nd.edu.au>


Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby 
notified that any disclosure, copying, distribution or taking action in 
relation of the contents of this information is strictly prohibited and 
may be unlawful.


This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a 
Service (SaaS) for business. Providing a safer and more useful place 
for your human generated data. Specializing in; Security, archiving and 
compliance. To find out more visit the Mimecast website.


--
Frédéric Gilli

mob.0668542622

http://www.cristallium.com

 [1]



Links:
--
[1] http://www.cristallium.com

BinaryUploader issue

2023-09-21 Thread contact

Hi All,

I try to send binary data with BinaryUploader .

In short I do this :

var ba:BinaryData = new BinaryData();
ba.writeByte(255);
ba.writeByte(256);
ba.writeByte(-256);

ba.position = 0;

var bup:BinaryUploader = new BinaryUploader();
bup.url = "http://.;;

bup.method = HTTPConstants.POST;

bup.binaryData = ba;
bup.send();

This works fine except that I receive the following : "[object 
ArrayBuffer]"


Looking at source of BinaryUploader.as, the issue is on line 577 
:binaryData = _binaryData.data.toString()


_binaryData.data.toString() convert ArrayBuffer to "[object 
ArrayBuffer]"


Do I miss something ?

Regards

Re: MD5 issue or wrong encoding ?

2023-07-12 Thread contact

Hi,

I answer myself...

If fix the issue by patching MD5.as by removing UTF8 encoding like  this 
:


/*
* Encode a string as utf-8
*/
private static function str2rstrUTF8 (input:String):String
{
return input;
//return unescape(encodeURIComponent(input));
}

Le 2023-07-12 13:24, cont...@cristallium.com a écrit :


Hi,

Here is one test file of 1 octet (0xc0 ie 192 in decimal) inside.

When using md5sum (on linux) of this file the result is 
4843a4868714fa7589e8ef87756bcacf


But when I do this :

import org.apache.royale.utils.MD5;

var test:BinaryData =  new BinaryData([0xc0]); //À

trace("->" + MD5.hash( test.toString()));
->9b759040321a408a5c7768b4511287a6

OR

trace ("->" + MD5.hash(String.fromCharCode(192) );
->d7a85d72b605f8d061a5200e12a838c7

Could you tell me what I do wrong ? Certainly an issue with unicode or 
UTF8, but I tried many converts I didn't get the right result 
(4843a4868714fa7589e8ef87756bcacf)


Fred


--

MD5 issue or wrong encoding ?

2023-07-12 Thread contact

Hi,

Here is one test file of 1 octet (0xc0 ie 192 in decimal) inside.

When using md5sum (on linux) of this file the result is 
4843a4868714fa7589e8ef87756bcacf


But when I do this :

import org.apache.royale.utils.MD5;

var test:BinaryData =  new BinaryData([0xc0]); //À

trace("->" + MD5.hash( test.toString()));
->9b759040321a408a5c7768b4511287a6

OR

trace ("->" + MD5.hash(String.fromCharCode(192) );
->d7a85d72b605f8d061a5200e12a838c7

Could you tell me what I do wrong ? Certainly an issue with unicode or 
UTF8, but I tried many converts I didn't get the right result 
(4843a4868714fa7589e8ef87756bcacf)


Fred

Re: Question about DropZone and FileReference

2023-07-11 Thread contact

This seems a good way.

I tried this :

var f:File = new File( (e.data[0] as DroppedModel).fileData ,  
(e.data[0] as DroppedModel).fileName ));

But the issue is to cast BinaryData to Array :(

Le 2023-07-11 19:30, Harbs a écrit :


You can also do this with the fileList:

for each (var file:File in fileList){
var ref:FileReference = new FileReference();
ref.fileReference = file;

var url:URLRequest = new 
URLRequest("http://myserver.com/upload_file.php;)

url.method = "POST";
ref.upload(url);
}

On Jul 11, 2023, at 7:46 PM, Harbs  wrote:

Something like this?

private function dropped(ev:DragEvent):void{
ev.preventDefault();
var fileList:FileList = ev.dataTransfer.files;
dispatchEvent(new ValueEvent("filesAvailable",fileList));
}

The code from FileLoader is relevant for getting the binary content of 
a file:


public function load():void
{
COMPILE::SWF
{
fileModel.fileReference.addEventListener(Event.COMPLETE, 
fileLoadHandler);

fileModel.fileReference.load();
}
COMPILE::JS
{
var reader:FileReader = new FileReader();
goog.events.listen(reader, 'load', fileLoadHandler);
reader.readAsArrayBuffer(fileModel.fileReference);
}
}

COMPILE::SWF
protected function fileLoadHandler(event:flash.events.Event):void
{
fileModel.fileReference.removeEventListener(Event.COMPLETE, 
fileLoadHandler);

fileModel.fileContent = new BinaryData(fileModel.fileReference.data);
}

On Jul 11, 2023, at 7:26 PM, cont...@cristallium.com wrote:

Hi All,

I struggle with drag and drop and upload file to a remote server.

I can upload file using FileReference (_fr), this is working fine :

private function ev_SelectedFile(e:Event):void {
var url:URLRequest = new 
URLRequest("http://myserver.com/upload_file.php;)

url.method = "POST";
trace ("selected1:" + (e.currentTarget as 
FileReference).fileReference.name);
trace ("selected2:" + (e.currentTarget as 
FileReference).fileReference.size); _fr.upload(url);

}

Now, instead to be _fr.browse(), I want the source of upload to be a 
drag and drop file.
I have an event working using jewel DropZone when I drop a file, but 
how to setup FileReference ? Here is my buggy code :


private function ev_dropped(e:DroppedEvent):void {

trace ("dropped");
//_fr.fileReference = new File((e.data[0] as 
DroppedModel).fileData.array,"test.mp3");

_fr.fileContent = (e.data[0] as DroppedModel).fileData;
var url:URLRequest = new 
URLRequest("http://myserver.com/upload_file.php;)

url.method = "POST";
_fr.upload(url),
}

Thank in advance for help
Regards
Fred


--
Frédéric Gilli

mob.0668542622

http://www.cristallium.com

 [1]



Links:
--
[1] http://www.cristallium.com

Re: Question about DropZone and FileReference

2023-07-11 Thread contact
Thanks for your ultra quick reply, I'm not in my conford area with these 
data types that I have never used.


I tried the following, but readAsArrayBuffer want a Blob type and 
DropEvent is giving an array of DroppedModel with fileData property wich 
is a BinaryData


How do you cast BinaryData to Blob ?

private function ev_dropped(e:DroppedEvent):void {

trace ("dropped");
var reader:FileReader = new FileReader();
reader.addEventListener('load', fileLoadHandler);
reader.readAsArrayBuffer( (e.data as 
DroppedModel).fileData  );<= issue here

}

Le 2023-07-11 18:46, Harbs a écrit :


Something like this?

private function dropped(ev:DragEvent):void{
ev.preventDefault();
var fileList:FileList = ev.dataTransfer.files;
dispatchEvent(new ValueEvent("filesAvailable",fileList));
}

The code from FileLoader is relevant for getting the binary content of 
a file:


public function load():void
{
COMPILE::SWF
{
fileModel.fileReference.addEventListener(Event.COMPLETE, 
fileLoadHandler);

fileModel.fileReference.load();
}
COMPILE::JS
{
var reader:FileReader = new FileReader();
goog.events.listen(reader, 'load', fileLoadHandler);
reader.readAsArrayBuffer(fileModel.fileReference);
}
}

COMPILE::SWF
protected function fileLoadHandler(event:flash.events.Event):void
{
fileModel.fileReference.removeEventListener(Event.COMPLETE, 
fileLoadHandler);

fileModel.fileContent = new BinaryData(fileModel.fileReference.data);
}


On Jul 11, 2023, at 7:26 PM, cont...@cristallium.com wrote:

Hi All,

I struggle with drag and drop and upload file to a remote server.

I can upload file using FileReference (_fr), this is working fine :

private function ev_SelectedFile(e:Event):void {
var url:URLRequest = new 
URLRequest("http://myserver.com/upload_file.php;)

url.method = "POST";
trace ("selected1:" + (e.currentTarget as 
FileReference).fileReference.name);
trace ("selected2:" + (e.currentTarget as 
FileReference).fileReference.size); _fr.upload(url);

}

Now, instead to be _fr.browse(), I want the source of upload to be a 
drag and drop file.
I have an event working using jewel DropZone when I drop a file, but 
how to setup FileReference ? Here is my buggy code :


private function ev_dropped(e:DroppedEvent):void {

trace ("dropped");
//_fr.fileReference = new File((e.data[0] as 
DroppedModel).fileData.array,"test.mp3");

_fr.fileContent = (e.data[0] as DroppedModel).fileData;
var url:URLRequest = new 
URLRequest("http://myserver.com/upload_file.php;)

url.method = "POST";
_fr.upload(url),
}

Thank in advance for help
Regards
Fred


--
Frédéric Gilli

mob.0668542622

http://www.cristallium.com

 [1]



Links:
--
[1] http://www.cristallium.com

Question about DropZone and FileReference

2023-07-11 Thread contact

Hi All,

I struggle with drag and drop and upload file to a remote server.

I can upload file using FileReference (_fr), this is working fine :

private function ev_SelectedFile(e:Event):void {
var url:URLRequest = new 
URLRequest("http://myserver.com/upload_file.php;)

url.method = "POST";
trace ("selected1:" + (e.currentTarget as 
FileReference).fileReference.name);
trace ("selected2:" + (e.currentTarget as 
FileReference).fileReference.size); _fr.upload(url);

}

Now, instead to be _fr.browse(), I want the source of upload to be a 
drag and drop file.
I have an event working using jewel DropZone when I drop a file, but how 
to setup FileReference ? Here is my buggy code :


 private function ev_dropped(e:DroppedEvent):void {

trace ("dropped");
//_fr.fileReference = new File((e.data[0] as 
DroppedModel).fileData.array,"test.mp3");

_fr.fileContent = (e.data[0] as DroppedModel).fileData;
var url:URLRequest = new 
URLRequest("http://myserver.com/upload_file.php;)

url.method = "POST";
_fr.upload(url),
}

Thank in advance for help
Regards
Fred

Re: [DISCUSS] Release Apache Royale 0.9.10 RC3

2023-05-12 Thread contact

Hi all,

If it may help : I have just downloaded 0.9.10 RC4

run "ant all" and set "y" for the question "Do you want to install the 
designmodo fonts? (y, [n])"


=> Compilation is fine :

all:

BUILD SUCCESSFUL
Total time: 10 minutes 5 seconds

Then I launch VisualStudio at 
"0.9.10-rc4\royale-asjs\examples\jewel\TourDeJewel" folder


Add .vscode folder with launch.json,settings.json,tasks.json, then set 
SDK to 0.9.10 RC4 and run compilation, all seems OK :


MXMLJSC
+royalelib=d:\dev\Royale\0.9.10-rc4\royale-asjs\frameworks
--debug=true
+configname=royale
--targets=JSRoyale
--source-path+=src/main/resources
--source-map=true
--html-template=src/main/resources/jewel-example-index-template.html
--theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
-js-dynamic-access-unknown-members=true
--
src/main/royale/App.mxml
The project 'App' has been successfully compiled.
15.5849618 seconds
* Terminal will be reused by tasks, press any key to close it.

Le 2023-05-12 11:13, Maria Jose Esteve a écrit :

Yes, I understand that, but "until now" ALWAYS, ALWAYS, even if I 
hadn't changed the sass file, defaults.css files were generated and 
"apparently" they were different because it presented them to me to 
upload them to the repo. This has happened to me in every SDK build 
since I included the "option-with-sass-compile" profile.


I just wanted to give you some explanation for this behavior.

By the way,... forgive me if this is a simple question... I compile TDJ 
fine, I don't see errors what are those errors you are talking about in 
the previous emails? 


Hiedra

-Mensaje original-
De: Yishay Weiss 
Enviado el: viernes, 12 de mayo de 2023 10:12
Para: dev@royale.apache.org
Asunto: Re: [DISCUSS] Release Apache Royale 0.9.10 RC3

Has the sass file changed? If not, I expect the defaults.css files 
won't change either.


From: Maria Jose Esteve 
Sent: Friday, May 12, 2023 10:36 AM
To: dev@royale.apache.org 
Subject: RE: [DISCUSS] Release Apache Royale 0.9.10 RC3

I am compiling Theme but the generated files are not showing up as 
"modified" so I can upload them to the repo has something changed 
in the compilation scripts?


Let me explain a little more...
Until now, ALWAYS when I compiled the SDK, the defaults.css files were 
generated, and I could see them in the "github desktop" as modified. I 
have not changed anything in my compilation bat but, now, these files 
are not presented as modified


Does this happen to anyone else?
This is my Maven compile statement [1]

[1] mvn clean install -DskipTests -P 
option-with-sass-compile,option-with-swf -Drat.skip=true


Hiedra

-Mensaje original-
De: Yishay Weiss  Enviado el: jueves, 11 de 
mayo de 2023 17:21

Para: dev@royale.apache.org
Asunto: Re: [DISCUSS] Release Apache Royale 0.9.10 RC3

The Approval script finishes successfully for me after reverting the 
changes in TDJ build.


Locally, I'm waiting for Maria to make the commits, perhaps with other 
necessary changes.


From: Yishay Weiss 
Sent: Thursday, May 11, 2023 6:19 PM
To: dev@royale.apache.org 
Subject: Re: [DISCUSS] Release Apache Royale 0.9.10 RC3

The Approval script finishes successfully for me after reverting the 
changes in TDJ build.


From: Yishay Weiss 
Sent: Thursday, May 11, 2023 3:48 PM
To: dev@royale.apache.org 
Subject: Re: [DISCUSS] Release Apache Royale 0.9.10 RC3

Hi Maria,

After trying to fix this myself I have come to the conclusion that 
there is no easy fix and we just need to revert the changes you made in 
33a58b54da69d2e10fb69782a51dfbc6fdeed628 and 
e71b1485cce885f84cda7d7883750eebeec38b3d


I now recall that Carlos never enabled theme building in ant for lack 
of a dedicated task. The log history shows that instead, the 
defaults.css were being manually updated after each sass change (I 
guess by running the mvn build) and copying the output to src. That 
includes css files for themes and for TDJ.


I suggest we continue operating in that way until we find a decent way 
build sass with ant.


Maybe with this Apache licensed Java solution [1] we can one day build 
our own ant task and use it in our build. However, I doubt that's a 
priority, and I would only consider doing it for 0.9.11 or higher.


If you agree with this, feel free to revert your said changes on dev 
and I'll start another RC after that.


Thanks

[1] cathive/sass-java: Libsass for Java 
(github.com)

[https://opengraph.githubassets.com/58ec07301dcc16ec89377a755fa4f204342b52fb5ca2c58285d8accff5ca06b1/cathive/sass-java]
GitHub - cathive/sass-java: Libsass for 
Java
Libsass for Java. Contribute to cathive/sass-java development by 
creating an account on GitHub.

github.com


From: Maria Jose Esteve 
Sent: Thursday, May 11, 2023 2:55 PM

Re: [DISCUSS] Release Apache Royale 0.9.10 RC2

2023-05-07 Thread contact

Hi,

I didn't see any issues with tour de jewel.

Here is what I did this morning :

- Downloading 0.9.10-rc2

- Downloading java sdk 20 and ant-1.10.13 and setup env vars

- Goes to royale-asjs folder and make an 'ant all'

- When finish, open royale-asjs\examples\jewel\TourDeJewel with Visual 
Studio Code.


- Add SDK 0.9.10-rc2

- Add settings.json, launch.json and tasks.json in TourDeJewel\.vscode

then it run fine

Could you tell me what issue do you have with TDJ ?

Le 2023-05-07 08:24, Yishay Weiss a écrit :

Thanks Josh. Sounds like another RC is in order for that fix and for 
updating the README. Can someone confirm tour-de-jewel example is not 
working and possibly offer a fix?


From: Josh Tynjala 
Sent: Friday, May 5, 2023 7:42 PM
To: dev@royale.apache.org 
Subject: Re: [DISCUSS] Release Apache Royale 0.9.10 RC2

This RC has a couple of issues when installing the js-swf version with 
npm.


npm install -g apache-royale-0.9.10-bin-js-swf.tar.gz

1) The download URLs are no longer valid for playerglobal.swc and the 
Adobe

AIR SDK. At some point, Adobe stopped providing anything before version
32.0, and we were trying to download 25.0. I fixed this issue today, in
this commit:
https://github.com/apache/royale-asjs/commit/36adf988efddbb0ad508798b0ec371e87eb7b8e9

2) Newer versions of npm (since v7, I think) no longer display any 
prompts

to the user when a package has a "postinstall" script. We have a
"postinstall" script that asks the user to accept Adobe's licenses and
download the binaries. By default, npm now just skips this dependency
installation entirely because it aborts the "postinstall" script when 
it

tries to prompt.

One available workaround is to tell users to add --foreground-scripts 
to
the npm install command. This will show the prompts, though they are 
kind
of mixed together with npm's progress bar, which isn't ideal. The user 
can

optionally add --no-progress to hide the progress bar.

Another workaround is to set the environment
variable ACCEPT_ALL_ROYALE_LICENSES to true before installing. No 
prompts

required, and the "postinstall" script completes successfully.

The first issue is the bigger one, since it prevents the SWF/JS
distribution from installing its dependencies under any circumstances. 
As I

said, it's now fixed on royale-asjs develop.

For the second issue, we can update our npm install instructions on the
website to include --foreground-scripts. It's not ideal, but we can 
come up

with a better solution later.

--
Josh Tynjala
Bowler Hat LLC 

On Fri, May 5, 2023 at 1:58 AM Yishay Weiss  
wrote:



This is the discuss thread.


--

Re: Performance issue with Datagrid / last build download issue

2023-04-26 Thread contact

Yes me too !

Le 2023-04-26 11:40, Hugo Ferreira a écrit :


I look forward to see your bead in action.

Harbs  escreveu no dia quarta, 26/04/2023 à(s) 
10:39:


That means, that I could use a normal DataGrid and "emulated" the 
infinite behaviour ?

Yes.

On Apr 26, 2023, at 12:32 PM, Hugo Ferreira  
wrote:

Hi Harbs,

That's fantastic !
That means, that I could use a normal DataGrid and "emulated" the 
infinite behaviour ?
If you managed time to push the bead with a example of use, would be 
great (when you have time).


But, don't forget that the user can grab the scroll bar and drop 
somewhere.


Harbs mailto:harbs.li...@gmail.com>> escreveu 
no dia quarta, 26/04/2023 à(s) 10:26:

The way I handle performance in my app is with requestAnimationFrame.

Stash an array of your data providers and add them i.e. 20 at a time:

private function handleScrollEnd():void{
for(var i:int=0;i<20;i++){
if(pendingTags.length){
// shift the first item and add

 it


to tags

 tags.addItem(pendingTags.shift());


} else {
break;
}
}
tagsList.dataProvider = tags;
if(pendingTags.length){
requestAnimationFrame(handleScrollEnd);
}
}

This makes things very snappy.

Another thing to look out for in terms of performance: Don't create 
any

unnecessary SVG elements (especially) in your itemRenderers. They are

 huge


performance killers.

Somewhat related:

I recently learned about IntersectionObservers and it's greatly 
improved

my infinite scrolling code:

private var gridObserver:Object;
private var observedItem:DataItemRenderer;
private function observeGridItem(lastIndex:int):void{
if(!gridObserver){
gridObserver = new
window["IntersectionObserver"](handleGridItemIntersection, {
root: view.images.element,
rootMargin: "0px",
threshold: 0.1
});
}
unobserveGridItem();
var dataContainerView:DataContainerView =
prefUtils.treeLayout ? view.imageTree.view as DataContainerView :
view.imageGrid.view as DataContainerView;
observedItem =
(dataContainerView).getItemRendererAt(lastIndex) as DataItemRenderer;
if(observedItem && observedItem.element){

 gridObserver.observe(observedItem.element);


}
}
private function unobserveGridItem():void{
if(!observedItem){
return;
}
if(!gridObserver){
return;
}
gridObserver.unobserve(observedItem.element);
observedItem = null;
}
private function
handleGridItemIntersection(entries:Array):void{
if(!entries.length){
return;
}
var entry:Object = entries[0];
if(entry.isIntersecting){
unobserveGridItem();
handleScrollEnd();
}
}

In this class, handleScrollEnd makes a request for more data.

When I have time, I should really create beads for both of these
patterns...

On Apr 26, 2023, at 11:19 AM, Hugo Ferreira  
wrote:

Hi,

File sent.

Thanks for trying to improve virtualdatagrid.
It is far from perfect but for those who want to use it for an 
application with a lot of data, for now it is the solution (or use

pagination).
Regards,
Hugo.

mailto:cont...@cristallium.com> 
 cont...@cristallium.com <mailto:cont...@cristallium.com>>> escreveu no


dia quarta, 26/04/2023 à(s) 07:37: Hi Hugo,

Thank a lot for your reply and sharing.
I don't know if it's an issue with my webmail, I don't have an 
attachment. Could you send it directly on my email ? (contact at

cristallium.com <http://cristallium.com/> <http://cristallium.com/ <

 http://cristallium.com/>> )

I will try with latest build from source to have some of your fix and 
study your DataGrid.as I will keep you in touch if I can do more 
improvements

Regards
Fred

Le 2023-04-25 23:51, Hugo Ferreira a écrit :

Hi,

DataGrid does not work good with a lot of data (as you saw).
You can use pagination (the users hate this approach and it's not very
 mobile friendly but it's technically a simple way to solve this 
problem) or



you can render on the screen only what is visible (the users love this
approach, it's mobile friendly but technically it's hard). Think about 
a game with 1000 players on the screen that you hide what

 is not visible at a specific moment.


VirtualDataGrid have this goal however there are many chalenges to be

 usable.


I saw in action several issues, I was able to find what I fix the

 majority of them and push to Royale github (I recomend compile from the
lastest source), I was able to fix 2 other problems in a ugly way and 
for



that reason I have an extension of the VirtualDataGrid on my libraries

 (as


soon I find better approach, I will exchange this local patches to

 Royale).


You can find in attachment my DataGrid.as that extends from Royale

 VirtualDataGrid.as


The 2 issues are commented in English (sorry for my bad English), so

 it's easy to understand the issues and what the pach does.


I also recomend to create ItemRenderes to all your needs where you can
 have 2 states: reading and editing, exchaning from a Label to a 
TextInput



for example.
About your issue, I kwnow it and for now it's the only major issue

 with

Re: Performance issue with Datagrid / last build download issue

2023-04-26 Thread contact

Hi Hugo,

Thank a lot for your reply and sharing.
I don't know if it's an issue with my webmail, I don't have an 
attachment. Could you send it directly on my email ? (contact at 
cristallium.com )
I will try with latest build from source to have some of your fix and 
study your DataGrid.as

I will keep you in touch if I can do more improvements
Regards
Fred

Le 2023-04-25 23:51, Hugo Ferreira a écrit :


Hi,

DataGrid does not work good with a lot of data (as you saw).
You can use pagination (the users hate this approach and it's not very 
mobile friendly but it's technically a simple way to solve this 
problem) or you can render on the screen only what is visible (the 
users love this approach, it's mobile friendly but technically it's 
hard).
Think about a game with 1000 players on the screen that you hide what 
is not visible at a specific moment.


VirtualDataGrid have this goal however there are many chalenges to be 
usable.
I saw in action several issues, I was able to find what I fix the 
majority of them and push to Royale github (I recomend compile from the 
lastest source), I was able to fix 2 other problems in a ugly way and 
for that reason I have an extension of the VirtualDataGrid on my 
libraries (as soon I find better approach, I will exchange this local 
patches to Royale).
You can find in attachment my DataGrid.as that extends from Royale 
VirtualDataGrid.as
The 2 issues are commented in English (sorry for my bad English), so 
it's easy to understand the issues and what the pach does.


I also recomend to create ItemRenderes to all your needs where you can 
have 2 states: reading and editing, exchaning from a Label to a 
TextInput for example.


About your issue, I kwnow it and for now it's the only major issue with 
VirtualDataGrid that I'm aware and I was not able to find iet a stable 
fix, however I found a more or less workaround (you can find it on my 
DataGrid.as).
I have created a bead DataGridScrollSpeed that I'm using on my 
DataGrid.as
This slow a bit the scroll and the issue reduces for almost of the time 
unless you force several times.

You can decrease even more the speed and reduce 99% the issue.
It's not the correct fix but I was not able to find out a better 
approach.

If someone can fix this for good, great !

Regards,
Hugo.

 escreveu no dia terça, 25/04/2023 à(s) 18:46:


Hi All,

I'm on a dev using Apache Royale with Jewel DataGrid tryng to show 
about

500 rows.

But I have an issue when I set dataprovider : the application is 
hanging

about 20 seconds... Then I saw that there is a VirtualDataGrid.

Using it is very fast. But there is an issue with vertical scrollbar :
when using it from bottom to upper, it's working right, but from upper
to bottom the thumb goes away (on Chrome). The issue is visible on 
Tour

de Jewel :

https://royale.apache.org/tourdejewel/#!virtual_lists_panel

(it's working is scrolling slow, but if I move down a little fast, 
then

the thumb go away from mouse and go immediatly to the end at bottom of
list)

On Firefox : there is one scrollbar but when can't reach the end of 
list
and on chrome there are 2 scrollbars, we can reach end of list but 
there

is an issue on using scrollbar from top to bottom

I saw a fix by Hugo, so I wanted to download last build on :

http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/lastSuccessfulBuild/artifact/out/

Unfortunaly it's dead. Is there a way to download last build on other
link ?

Regards

nb : I'm using sdk 0.9.10


--
Frédéric Gilli

mob.0668542622

http://www.cristallium.com

 [1]



Links:
--
[1] http://www.cristallium.com

Re: Performance issue with Datagrid / last build download issue

2023-04-26 Thread contact

Hi Maria,

Many thanks for the CI link.

As I changed my computer, I need to setup again tools to compile SDK. So 
to save time I will use your links


Fred

Le 2023-04-25 21:58, Maria Jose Esteve a écrit :


Hi, can you compile the SDK?
If you can't, this is a CI server access:
https://ci-builds.apache.org/job/Royale/job/Royale-asjs/

Hiedra

-Mensaje original-
De: cont...@cristallium.com 
Enviado el: martes, 25 de abril de 2023 19:46
Para: dev@royale.apache.org
Asunto: Performance issue with Datagrid / last build download issue

Hi All,

I'm on a dev using Apache Royale with Jewel DataGrid tryng to show 
about

500 rows.

But I have an issue when I set dataprovider : the application is 
hanging about 20 seconds... Then I saw that there is a VirtualDataGrid.


Using it is very fast. But there is an issue with vertical scrollbar :
when using it from bottom to upper, it's working right, but from upper 
to bottom the thumb goes away (on Chrome). The issue is visible on Tour 
de Jewel :


https://royale.apache.org/tourdejewel/#!virtual_lists_panel

(it's working is scrolling slow, but if I move down a little fast, then 
the thumb go away from mouse and go immediatly to the end at bottom of

list)

On Firefox : there is one scrollbar but when can't reach the end of 
list and on chrome there are 2 scrollbars, we can reach end of list but 
there is an issue on using scrollbar from top to bottom


I saw a fix by Hugo, so I wanted to download last build on :

http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/lastSuccessfulBuild/artifact/out/

Unfortunaly it's dead. Is there a way to download last build on other 
link ?


Regards

nb : I'm using sdk 0.9.10

Performance issue with Datagrid / last build download issue

2023-04-25 Thread contact

Hi All,

I'm on a dev using Apache Royale with Jewel DataGrid tryng to show about 
500 rows.


But I have an issue when I set dataprovider : the application is hanging 
about 20 seconds... Then I saw that there is a VirtualDataGrid.


Using it is very fast. But there is an issue with vertical scrollbar : 
when using it from bottom to upper, it's working right, but from upper 
to bottom the thumb goes away (on Chrome). The issue is visible on Tour 
de Jewel :


https://royale.apache.org/tourdejewel/#!virtual_lists_panel

(it's working is scrolling slow, but if I move down a little fast, then 
the thumb go away from mouse and go immediatly to the end at bottom of 
list)


On Firefox : there is one scrollbar but when can't reach the end of list 
and on chrome there are 2 scrollbars, we can reach end of list but there 
is an issue on using scrollbar from top to bottom


I saw a fix by Hugo, so I wanted to download last build on :

http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs_jsonly/lastSuccessfulBuild/artifact/out/

Unfortunaly it's dead. Is there a way to download last build on other 
link ?


Regards

nb : I'm using sdk 0.9.10

Re: Compile ANT - sass

2022-10-07 Thread contact

Please give a try in directory royale-asjs\frameworks\projects\Jewel

Le 2022-10-07 11:52, Hugo Ferreira a écrit :


I just download maven for my macOS using Homebrew.
Position on the folder:
apache-royale-src/apache-royale/frameworks/projects/Jewel/src/main/sass/components
An run the command: mvn sass:update-stylesheets
I got the following error: [*ERROR*] No plugin found for prefix 'sass' 
in

the current project and in the plugin groups [org.apache.maven.plugins,
org.codehaus.mojo] available from the repositories [local
(/Users/hugo/.m2/repository), central 
(https://repo.maven.apache.org/maven2

)]

 escreveu no dia sexta, 7/10/2022 à(s) 10:27:

Hi,

I don't know with ANT, but if it may help, when I want to update css 
for

Jewel, I go into Jewel directory and I enter this command :

mvn sass:update-stylesheets

Regards

Le 2022-10-07 11:20, Hugo Ferreira a écrit :

Hi,

I'm not familiary with sass format, however I believe that a bug
releated
with Jewel VirtualDataGrid is about a mistake on the VirtualDataGrid
sass
(file _datagrid.sass).
After I changed the _datagrid.sass on my side and compile with ant: ant
all, I didn't saw any changes.
Should I need to execute any special command for generate the css from
sass
?

Regards,
Hugo.

Re: Compile ANT - sass

2022-10-07 Thread contact

Hi,

I don't know with ANT, but if it may help, when I want to update css for 
Jewel, I go into Jewel directory and I enter this command :


mvn sass:update-stylesheets

Regards

Le 2022-10-07 11:20, Hugo Ferreira a écrit :


Hi,

I'm not familiary with sass format, however I believe that a bug 
releated
with Jewel VirtualDataGrid is about a mistake on the VirtualDataGrid 
sass

(file _datagrid.sass).
After I changed the _datagrid.sass on my side and compile with ant: ant
all, I didn't saw any changes.
Should I need to execute any special command for generate the css from 
sass

?

Regards,
Hugo.

Re: Introducing asformat

2022-10-05 Thread contact

Hi all,

Congratulations, this is wonderful !

Le 2022-09-29 08:16, Harbs a écrit :

Yes. Most of us have similar stories. As long as you're not afraid to 
start learning something new you will be surprised how much you can 
learn in small steps.


Harbs

On Sep 29, 2022, at 12:02 AM, Josh Tynjala  
wrote:


Around 2015 or so, I had never worked on a compiler, formatter, or 
linter.


I started trying to use the Royale compiler (still called the FlexJS
compiler at the time) to create the AS3/MXML extension for VSCode. 
Soon, I
found a bug in the compiler that prevented my VSCode extension from 
working
properly. I tried my best to understand a small section of the 
compiler's
code, and I was able to fix the bug and submit a pull request. 
Eventually,

I fixed some more bugs, and I was asked to join the project as a
contributor. Since then, I've learned how larger and larger parts of 
the

compiler work. To be honest, it took probably 5-7 years before I really
felt that I understood most of what the compiler was doing. It just 
takes a

lot of time and persistence.

Recently, I was able to recognize that I could reuse large parts of the
compiler's code to create a formatter and a linter for ActionScript 
(the

ActionScript language name is where the "as" prefix of "asformat" and
"aslint" comes from, of course). I had never created a formatter or a
linter before, and it took some trial and error to figure out the best 
way
to do things. For the formatter, I tried to format one little thing 
first,
like `if (condition) {}` or something like that. Then, I slowly added 
more
and more (for, while, try/catch, class A extends B, etc.). It took 
months

of work, which was built on my previous years of work understanding and
maintaining the compiler.

Honestly, like most of everything I've ever tried to learn, I started 
with
one small thing. Don't try to understand everything all at once. At 
least

not in detail. It's often fine to have a general idea of how something
works at a high-level, even if you don't understand it completely. 
Then,

you can dive into the details later. Anyway, over the course of years
working on the same thing, you can really learn a lot.

--
Josh Tynjala
Bowler Hat LLC 

On Wed, Sep 28, 2022 at 1:00 PM Maria Jose Esteve  
wrote:


How can you know about so many things? asformat, aslint, linter... omg,
you guys never cease to amaze me... I had to look up the meaning of 
each of

these words :(

I don't feel able to help you with any of this but, Yishay, if you 
teach

me I can be your backup for the releases.

Hiedra

-Mensaje original-
De: Yishay Weiss 
Enviado el: miércoles, 28 de septiembre de 2022 20:16
Para: dev@royale.apache.org
Asunto: RE: Introducing asformat

It's great to see this progress. I expect to see as-linter replacing
SonarQube in our current project. Do you think it would be hard to
integrate it with GitHub actions?

The -watch option is already being used and is a big productivity 
boost.


I expect I'll make use of asformat at some point as well. Thanks for 
all

this Josh.

I may get some time at the end of this month to work on a release, but 
I
would prefer to do it with another volunteer, to share knowledge and 
add
redundancy. Also, I want to use the new Azure VM I created (Apache 
funded)
instead of Alex's so we have redundancy in that respect as well.  The 
VM

isn't all set up yet so I will need to work on that.

From: Josh Tynjala
Sent: Wednesday, September 28, 2022 6:35 PM
To: dev@royale.apache.org
Subject: Re: Introducing asformat

A new release sounds good to me! I just updated the compiler release
notes, and there's a decent amount of stuff to be included. Not just 
these

formatter improvements, but also the new linter, headless JS RoyaleUnit
tests with Playwright, and the --watch compiler option are all new 
since

the last release.

--
Josh Tynjala
Bowler Hat LLC 

On Wed, Sep 28, 2022 at 6:45 AM Harbs  wrote:

That's great!

This is a good reason to get another release out. :-)

Harbs

On Sep 28, 2022, at 12:24 AM, Josh Tynjala
 wrote:
I just wanted to follow up by mentioning that I recently added the 
ability for the formatter load configuration files, in addition to the

existing command line options. It will automatically detect an
asformat-config.xml file in the current working directory, allowing
you to easily specify configuration options for a specific project.
You can also use a new -load-config option to load a configuration
file from any path, not just the current working directory. You can
use -skip-local-config-file to ignore the asformat-config.xml file.
Once we release the next Royale update, I plan to make
vscode-as3mxml automatically detect the asformat-config.xml file too, 
so you will be

able to configure formatting options for both the command line and
VSCode at the same time.
I also updated the Royale 

Re: how to get url ?

2022-08-09 Thread contact

Thanks for your quick reply.

No way. Perhaps I do something wrong.
It's working when I run in local (return  
"file:///D:/dev/Royale/MyProject/bin/js-debug/index.html"), but it 
return empty string on production server.


Here is my code :

http://ns.adobe.com/mxml/2009;
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic"
initialize="initialize()" >







Le 2022-08-09 17:05, Harbs a écrit :


just use "window.location".

Make sure to use a JS block if you're compiling to something other than 
JS too...



On Aug 9, 2022, at 5:31 PM, cont...@cristallium.com wrote:

Hi all,

I'm struggle on getting browser full url. (sdk 0.9.10)

I tried this :

var browserUrl:String = ExternalInterface.call("eval", 
"window.location.href");

Unfortunately this doesn't work in my case.

Is there another way to get it ? I know 
ApplicationParametersCaseInsensitive as a beads , it works great for 
parameters but it has no getter for full url.


Thank in advance for your reply
Regards

Fred




how to get url ?

2022-08-09 Thread contact

Hi all,

I'm struggle on getting browser full url. (sdk 0.9.10)

I tried this :

var browserUrl:String = ExternalInterface.call("eval", 
"window.location.href");

Unfortunately this doesn't work in my case.

Is there another way to get it ? I know 
ApplicationParametersCaseInsensitive as a beads , it works great for 
parameters but it has no getter for full url.


Thank in advance for your reply
Regards

Fred




Re: Audio and video player for Royale

2022-05-27 Thread contact

Maria,

Following our discussion, I done another PR with code in HTML5 project :

https://github.com/apache/royale-asjs/pull/1200

I tested it by compiling it with ant, but not maven.

Let me know if you need help

Le 2022-05-27 11:24, Maria Jose Esteve a écrit :

Hello, this afternoon I will have some free time to dedicate to this 
topic.


I have looked at the implementation and, a priori, I do not detect any 
irregularity . The only thing we have pending is to decide whether to 
create a new "Media" library or include the basic controls in HTML or 
HTML5 since they are essentially wrappers of HTMLMediaElement, 
HTMLVideoElement and HTMLAudioElement.


Do you think that the implementation has, or can have, enough entity of 
its own to create the new Media.swc library?


If nobody comments anything against it, I think the least invasive 
thing to do is to include it in HTML5, opinions?


Thx

Hiedra

De: cont...@cristallium.com 
Enviado el: sábado, 7 de mayo de 2022 10:41
Para: dev@royale.apache.org
Asunto: Re: Audio and video player for Royale

Many thanks for your messages.

I will do some other tests and add doc , then I will make a PR.

Fred

Le 2022-05-06 17:10, Maria Jose Esteve a écrit :


This is great cristallium

Hiedra

-Mensaje original-
De: cont...@cristallium.com 
Enviado el: viernes, 6 de mayo de 2022 13:43
Para: dev@royale.apache.org
Asunto: Audio and video player for Royale

Dear Royale team,

I use sometime Royale and love it. I have some background in video and 
audio thanks by several development using video or audio using Flex.


I spent my last nights to read a maximum of Royale SDK, trying to 
understand how to add content and participate to ameliore.


Finnally I success in adding a VideoPlayer and AudioPlayer based on an 
added project named "media" which contains 3 classes :
MediaElement,VideoElement and AudioElement (essentialy a wrapper for 
Web API HTMLMediaElement,HTMLVideoElement and HTMLAudioElement).


I added it in Jewel, you can look the result here :

http://demo.cristallium.com/tdj/#!videoplayer_panel [1]

http://demo.cristallium.com/tdj/#!audioplayer_panel [2]

(or the 2 last items in the left menu)

I would be very happy to make a PR to add it to Royale. (before I 
would need to add some as3 doc above functions, and maybe find another 
mp3 link with better sound level)


Source code is here :

https://github.com/cristallium/royale-asjs/tree/Media-project-+-AudioPlayer-and-VideoPlayer-for-Jewel 
[3]


Would you agree to add this content ?

If yes, for minimize your work, perhaps could you tell me if I must 
rework some code and how to be fully compliant with your work ?


Also, I'm not familiar with Ant or Maven. I succed to compile it with 
Ant by copy/paste build.xml and adapt it. I didn't try with Maven 
(.pom), I don't know if .pom files are alright.


Hope you will enjoy

Fred




Links:
--
[1] http://demo.cristallium.com/tdj/#!videoplayer_panel
[2] http://demo.cristallium.com/tdj/#!audioplayer_panel
[3] 
https://github.com/cristallium/royale-asjs/tree/Media-project-+-AudioPlayer-and-VideoPlayer-for-Jewel

Re: compiler issue or not ?

2022-05-18 Thread contact

Done :

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

Le 2022-05-18 23:26, Greg Dove a écrit :


Please report that as an issue. For the first one, I assume it is
generating something like 
d1.setHours(d1.setMinutes(d1.setMillseconds(0)))
? That is going to cause problems, because each of those methods 
returns

the 'getTime()' value, and not the value that was set.

On Thu, May 19, 2022 at 9:12 AM  wrote:


Hi All,

I notice something strange  (using sdk 0.9.9), take this code :

var d1:Date = new Date();
d1.hours = d1.minutes = d1.milliseconds = 0;
trace ("d1->" + d1.getTime());

var d2:Date = new Date();
d2.hours = 0;
d2.minutes = 0;
d2.milliseconds = 0;
trace ("d2->" + d2.getTime());

It will show this result :

d1->NaN
d2->1652824822000

Do I need to report this as an issue ? or X = Y = Z = 0 is a bad
practice in as3 (or I'm wrong using Date ?) ?

Regards
Fred


--
Frédéric Gilli

mob.0668542622

http://www.cristallium.com

 [1]



Links:
--
[1] http://www.cristallium.com

Re: compiler issue or not ?

2022-05-18 Thread contact

You are totally right :

var /** @type {Date} */ d1 = new Date();
d1.setHours(d1.setMinutes(d1.setMilliseconds(0)));
org.apache.royale.utils.Language.trace("d1->" + d1.getTime());

Le 2022-05-18 23:26, Greg Dove a écrit :


Please report that as an issue. For the first one, I assume it is
generating something like 
d1.setHours(d1.setMinutes(d1.setMillseconds(0)))
? That is going to cause problems, because each of those methods 
returns

the 'getTime()' value, and not the value that was set.

On Thu, May 19, 2022 at 9:12 AM  wrote:


Hi All,

I notice something strange  (using sdk 0.9.9), take this code :

var d1:Date = new Date();
d1.hours = d1.minutes = d1.milliseconds = 0;
trace ("d1->" + d1.getTime());

var d2:Date = new Date();
d2.hours = 0;
d2.minutes = 0;
d2.milliseconds = 0;
trace ("d2->" + d2.getTime());

It will show this result :

d1->NaN
d2->1652824822000

Do I need to report this as an issue ? or X = Y = Z = 0 is a bad
practice in as3 (or I'm wrong using Date ?) ?

Regards
Fred

compiler issue or not ?

2022-05-18 Thread contact

Hi All,

I notice something strange  (using sdk 0.9.9), take this code :

var d1:Date = new Date();
d1.hours = d1.minutes = d1.milliseconds = 0;
trace ("d1->" + d1.getTime());

var d2:Date = new Date();
d2.hours = 0;
d2.minutes = 0;
d2.milliseconds = 0;
trace ("d2->" + d2.getTime());

It will show this result :

d1->NaN
d2->1652824822000

Do I need to report this as an issue ? or X = Y = Z = 0 is a bad 
practice in as3 (or I'm wrong using Date ?) ?


Regards
Fred




Re: TileHorizontalLayout compute wrong margin-right in case of scroller (ignoring scrollbar width) (Issue #1193)

2022-05-09 Thread contact

Yes, this is perfect ! I tested on PC with Chrome and Firefox

Le 2022-05-09 04:20, Maria Jose Esteve a écrit :

I have obtained satisfactory results by adding observeElementSize to 
hostComponent.element (for Windows).


This could be an initial version:
https://github.com/mjesteve/royale-asjs/commit/ce3fc686073b44b75b25d4ef13ed4332e3a364e0

What do you think?

Hiedra

-Mensaje original-
De: Maria Jose Esteve 
Enviado el: sábado, 30 de abril de 2022 12:01
Para: dev@royale.apache.org; cont...@cristallium.com
Asunto: RE: TileHorizontalLayout compute wrong margin-right in case of 
scroller (ignoring scrollbar width) (Issue #1193)


Yes, it will be necessary to put some "Observer". It occurs to me to 
look at the existing solution in Grid/GridCell.

Hiedra

-Mensaje original-
De: cont...@cristallium.com  Enviado el: 
sábado, 30 de abril de 2022 10:42

Para: dev@royale.apache.org
Asunto: RE: TileHorizontalLayout compute wrong margin-right in case of 
scroller (ignoring scrollbar width) (Issue #1193)


Hi,

Sorry, I misunderstood your previous message. I belived that 
hostComponent.element.scrollWidth doesn't work properly on Mac.


If that's working properly then this piece of code will solve the issue
:

var adjustedHostWidth:Number = Math.floor(host.width - 
borderMetrics.left - borderMetrics.right);

if (hostComponent.containsClass("scroll") ==  true){
//Reserve some room for VScrollbar
adjustedHostWidth -= hostComponent.element.scrollWidth ;
}

But this need another fix to be totaly fonctional : layout() must be 
called again to update margin-right value if browser is redimensioned


What's your opinion ?

Fred

On 2022/04/29 08:39:23 Maria Jose Esteve wrote:


Hi, I would like to get your opinion about the Cristallium PR:



For THL to correctly calculate the internal width of the container you
need to know if the vertical scroll bar is visible and if so deduct
its width.



It seems that obtaining this value, the scroll width, depends on the
environment:



- Satisfactory tests have been obtained on Windows, with
hostComponent.element.scrollWidth.



- On Mac, the scroll has a different behavior but it seems that the
tests are also satisfactory.



Several questions:



With your experience, would using hostComponent.element.scrollWidth be
reliable enough?



And for those of you who work with Mac, any particularities to
consider?



As a temporary solution, Cristallium proposes to create a property
"vscrollBarWidthReserve" where we would indicate, in each case, the
width we know the scroll will have, but I think we should focus on
getting the correct scroll width... What is your opinion?



Thx.



Hiedra



De: Cristallium 



Enviado el: jueves, 28 de abril de 2022 20:39



Para: apache/royale-asjs 



CC: Maria Jose Esteve ; Mention




Asunto: Re: [apache/royale-asjs] TileHorizontalLayout compute wrong
margin-right in case of scroller (ignoring scrollbar width) (Issue
#1193)



Hi Maria,



I share the same thought from you : if there was a way to get,
truthfully or acceptably, the width of the scroll it would be better.
When you said "mac" are you talking of "safari" web browser ? If yes I
search a little on Internet, but found nothing interessing to get
safari scrollbar width.



Do you think other Apache Royale team would have an advice on it ?



Actually I didn't see any solution except adding a new property ( or
bead but my level isn't hight enought to know what's better).



Can we for now add property (or bead) and when all browsers will
propose to have a real way to get scroll width we could remove this
property ?



-



Reply to this email directly, view it on
GitHub,
or
unsubscribe.



You are receiving this because you were mentioned.Message ID:



--
Frédéric Gilli

mob.0668542622

http://www.cristallium.com

 [1]



Links:
--
[1] http://www.cristallium.com

Re: Audio and video player for Royale

2022-05-07 Thread contact

Many thanks for your messages.

I will do some other tests and add doc , then I will make a PR.

Fred

Le 2022-05-06 17:10, Maria Jose Esteve a écrit :


This is great cristallium

Hiedra

-Mensaje original-
De: cont...@cristallium.com 
Enviado el: viernes, 6 de mayo de 2022 13:43
Para: dev@royale.apache.org
Asunto: Audio and video player for Royale

Dear Royale team,

I use sometime Royale and love it. I have some background in video and 
audio thanks by several development using video or audio using Flex.


I spent my last nights to read a maximum of Royale SDK, trying to 
understand how to add content and participate to ameliore.


Finnally I success in adding a VideoPlayer and AudioPlayer based on an 
added project named "media" which contains 3 classes :
MediaElement,VideoElement and AudioElement (essentialy a wrapper for 
Web API HTMLMediaElement,HTMLVideoElement and HTMLAudioElement).


I added it in Jewel, you can look the result here :

http://demo.cristallium.com/tdj/#!videoplayer_panel

http://demo.cristallium.com/tdj/#!audioplayer_panel

(or the 2 last items in the left menu)

I would be very happy to make a PR to add it to Royale. (before I would 
need to add some as3 doc above functions, and maybe find another mp3 
link with better sound level)


Source code is here :

https://github.com/cristallium/royale-asjs/tree/Media-project-+-AudioPlayer-and-VideoPlayer-for-Jewel

Would you agree to add this content ?

If yes, for minimize your work, perhaps could you tell me if I must 
rework some code and how to be fully compliant with your work ?


Also, I'm not familiar with Ant or Maven. I succed to compile it with 
Ant by copy/paste build.xml and adapt it. I didn't try with Maven 
(.pom), I don't know if .pom files are alright.


Hope you will enjoy

Fred


--
Frédéric Gilli

mob.0668542622

http://www.cristallium.com

 [1]



Links:
--
[1] http://www.cristallium.com

Audio and video player for Royale

2022-05-06 Thread contact

Dear Royale team,

I use sometime Royale and love it. I have some background in video and 
audio thanks by several development using video or audio using Flex.


I spent my last nights to read a maximum of Royale SDK, trying to 
understand how to add content and participate to ameliore.


Finnally I success in adding a VideoPlayer and AudioPlayer based on an 
added project named "media" which contains 3 classes : 
MediaElement,VideoElement and AudioElement (essentialy a wrapper for Web 
API HTMLMediaElement,HTMLVideoElement and HTMLAudioElement).


I added it in Jewel, you can look the result here :

http://demo.cristallium.com/tdj/#!videoplayer_panel

http://demo.cristallium.com/tdj/#!audioplayer_panel

(or the 2 last items in the left menu)

I would be very happy to make a PR to add it to Royale. (before I would 
need to add some as3 doc above functions, and maybe find another mp3 
link with better sound level)


Source code is here :

https://github.com/cristallium/royale-asjs/tree/Media-project-+-AudioPlayer-and-VideoPlayer-for-Jewel

Would you agree to add this content ?

If yes, for minimize your work, perhaps could you tell me if I must 
rework some code and how to be fully compliant with your work ?


Also, I'm not familiar with Ant or Maven. I succed to compile it with 
Ant by copy/paste build.xml and adapt it. I didn't try with Maven 
(.pom), I don't know if .pom files are alright.


Hope you will enjoy

Fred

RE: TileHorizontalLayout compute wrong margin-right in case of scroller (ignoring scrollbar width) (Issue #1193)

2022-04-30 Thread contact

Hi,

Sorry, I misunderstood your previous message. I belived that 
hostComponent.element.scrollWidth doesn't work properly on Mac.


If that's working properly then this piece of code will solve the issue 
:


var adjustedHostWidth:Number = Math.floor(host.width - 
borderMetrics.left - borderMetrics.right);

if (hostComponent.containsClass("scroll") ==  true){
//Reserve some room for VScrollbar
adjustedHostWidth -= 
hostComponent.element.scrollWidth ;

}

But this need another fix to be totaly fonctional : layout() must be 
called again to update margin-right value if browser is redimensioned


What's your opinion ?

Fred



On 2022/04/29 08:39:23 Maria Jose Esteve wrote:


Hi, I would like to get your opinion about the Cristallium PR:


For THL to correctly calculate the internal width of the container you 
need to know if the vertical scroll bar is visible and if so deduct its 
width.






It seems that obtaining this value, the scroll width, depends on the 
environment:


- Satisfactory tests have been obtained on Windows, with 
hostComponent.element.scrollWidth.


- On Mac, the scroll has a different behavior but it seems that the 
tests are also satisfactory.







Several questions:


With your experience, would using hostComponent.element.scrollWidth be 
reliable enough?


And for those of you who work with Mac, any particularities to 
consider?






As a temporary solution, Cristallium proposes to create a property 
"vscrollBarWidthReserve" where we would indicate, in each case, the 
width we know the scroll will have, but I think we should focus on 
getting the correct scroll width... What is your opinion?







Thx.







Hiedra







De: Cristallium 



Enviado el: jueves, 28 de abril de 2022 20:39



Para: apache/royale-asjs 


CC: Maria Jose Esteve ; Mention 



Asunto: Re: [apache/royale-asjs] TileHorizontalLayout compute wrong 
margin-right in case of scroller (ignoring scrollbar width) (Issue 
#1193)











Hi Maria,






I share the same thought from you : if there was a way to get, 
truthfully or acceptably, the width of the scroll it would be better. 
When you said "mac" are you talking of "safari" web browser ? If yes I 
search a little on Internet, but found nothing interessing to get 
safari scrollbar width.



Do you think other Apache Royale team would have an advice on it ?


Actually I didn't see any solution except adding a new property ( or 
bead but my level isn't hight enought to know what's better).


Can we for now add property (or bead) and when all browsers will 
propose to have a real way to get scroll width we could remove this 
property ?







-


Reply to this email directly, view it on 
GitHub, 
or 
unsubscribe.


You are receiving this because you were mentioned.Message ID: 







Opinion about adding example project for locales use

2022-04-29 Thread contact

Hi,

I had some difficulty using a Flex-like system for display text 
translation with Royale.
So I made this working example which might be useful for peoples trying 
this.

Could it be added  in the examples ?

What do you think ?

https://github.com/apache/royale-asjs/pull/1191

Could you give me feedback ? (because I'm not sure to use the right 
coding way)


Thanks

Regards

Re: RemoteObject AMF issue

2022-03-30 Thread contact

Hi,

I answer myself my question as I find the solution to this issue.

I beleve that from sdk 0.9.9 RemoteObject have been modified and removed 
AMF0 support to add it in a bed.


Adding this to main app solve the issue :


   


Now, I don't know why (I didn't dig), I think that AMFPHP from silexlabs 
out of the box send AMF0 response. This is another story..


Regards



Le 2022-03-29 21:03, cont...@cristallium.com a écrit :


Hi Guys,

I have issue with RemoteObject AMF since sdk 0.9.9

I'm completely lost on now how to use RemoteObject

I had open a ticket on it some time ago : 
https://github.com/apache/royale-asjs/issues/1174


now I 'm trying sdk 0.9.10, but the issue is not the same :

[AMFBinaryData.readObject] - Deserialization Error :AMF0 support is 
unimplemented by default, supported via bead


But I'm not using AMF0

Is there an exemple on how to use RemoteObject in pure as3 (no mxml) ?

I'm using there imports :

import mx.rpc.AsyncToken;
import mx.rpc.Responder;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.remoting.RemoteObject;

Are the right ones ? Or must I use anothers include like import 
org.apache.royale.net.RemoteObject ? (but this one has no 'source' 
property !)


My code is something like this :

_ro = new RemoteObject();
_ro.source = "aadmin";
_ro.addEventListener(FaultEvent.FAULT,onFaultEvent);
_ro.endpoint = _gatewayURL;
_ro.destination = "amfphp";

public function callService(name:String, listener:Function, 
args:Object):void

{
var pos:int =  name.indexOf(".");
if (pos == -1) return;
var ops:Array = name.split(".");
var r:Responder = new Responder(listener, onFaultEvent);
_ro.source = ops[0];
var t:AsyncToken = _ro.getOperation(ops[1]).send(args);
t.addResponder(r);
}

Any help would be greatly apprecied

Regards





RemoteObject AMF issue

2022-03-29 Thread contact

Hi Guys,

I have issue with RemoteObject AMF since sdk 0.9.9

I'm completely lost on now how to use RemoteObject

I had open a ticket on it some time ago : 
https://github.com/apache/royale-asjs/issues/1174



now I 'm trying sdk 0.9.10, but the issue is not the same :

[AMFBinaryData.readObject] - Deserialization Error :AMF0 support is 
unimplemented by default, supported via bead


But I'm not using AMF0


Is there an exemple on how to use RemoteObject in pure as3 (no mxml) ?

I'm using there imports :

 import mx.rpc.AsyncToken;
 import mx.rpc.Responder;
 import mx.rpc.events.FaultEvent;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.remoting.RemoteObject;

Are the right ones ? Or must I use anothers include like import 
org.apache.royale.net.RemoteObject ? (but this one has no 'source' 
property !)


My code is something like this :

_ro = new RemoteObject();
_ro.source = "aadmin";
_ro.addEventListener(FaultEvent.FAULT,onFaultEvent);
_ro.endpoint = _gatewayURL;
_ro.destination = "amfphp";

 public function callService(name:String, listener:Function, 
args:Object):void

{
var pos:int =  name.indexOf(".");
if (pos == -1) return;
var ops:Array = name.split(".");
var r:Responder = new Responder(listener, onFaultEvent);
_ro.source = ops[0];
var t:AsyncToken = _ro.getOperation(ops[1]).send(args);
t.addResponder(r);
}


Any help would be greatly apprecied

Regards


Re: Youtube Video embeding

2020-07-29 Thread contact
Hi Carlos, 

Thanks for your reply. 

The fact is I didn't know about UIBase and iFrame. 

Is there a example somewhere how to use it ? 

Regards 


Le 29.07.2020 18:27, Carlos Rovira a écrit :


Hi Fref,

I'm all for SOF as you know since I think it is a good place to find answers and could be a way for Royale users to find solutions to his problems. For this one I think you can respond yourself talking about the iFrame solution and the new component done by Harbs, but I expect we could have a video component in the future, or maybe some more since I guess we'll need to take into account not only youtube but other options as well. 

El mié., 29 jul. 2020 a las 11:16,  escribió: 

Hi All, 

I see a lot of usefull knowlege in this thread and others (on chart component etc...). Unfortunaly this is not well indexed by search motors. 

For exemple search for "apache royale video play", the first result will be on stackoverflow. (https://stackoverflow.com/questions/58512563/how-to-play-a-mp4-video-with-apache-royale) 

So why not add some knowlege by answering this post (on SOF) ? 

I see 2 advantages : better index and more SOF questions = more audience and more confidence in finding an answer for future developers 

Today, a lot of developpers are using SOF for copy/paste snipets of code. It would be great to have same stuff for Apache Royale 

Regards 

Le 29.07.2020 09:41, spiros a écrit : 
Hi Carlos,


Yes with an extension to UIBase it was easy to create an Iframe element and 
pass the YouTube url.

When I finally have a stable component I will post it to this thread.

Thanks

Spiros 


-Original Message-
From: Carlos Rovira [mailto:carlosrov...@apache.org] 
Sent: Tuesday, July 28, 2020 4:19 PM

To: Apache Royale Development
Subject: Re: Youtube Video embeding

Hi Spiros,

Yes, Youtube should be easy to integrate in a Royale App. I think we don't
have a component right now for that but since Youtube used to be
embedded via iframe in a web page that should not be a problem. I think
there's already some components that allow you to use an iframe in royale
that you could try, or just try some basic example and try to use in Royale
meanwhile we add some official components.

To All, someone has the time to create some basic video component anc
contribute?

Thanks

El mar., 28 jul. 2020 a las 10:52, spiros () escribió:

Hi,

Is it possible to embed a youtube  video to royale application ?

Best regards

Spiros


--
Frédéric Gilli 


mob.0668542622

http://www.cristallium.com

[1]

 -- 


Carlos Rovira
http://about.me/carlosrovira 


--
Frédéric Gilli 


mob.0668542622

http://www.cristallium.com

[1]



Links:
--
[1] http://www.cristallium.com

Re: Youtube Video embeding

2020-07-29 Thread contact
Hi All, 


I see a lot of usefull knowlege in this thread and others (on chart
component etc...). Unfortunaly this is not well indexed by search
motors. 


For exemple search for "apache royale video play", the first result will
be on stackoverflow.
(https://stackoverflow.com/questions/58512563/how-to-play-a-mp4-video-with-apache-royale)


So why not add some knowlege by answering this post (on SOF) ? 


I see 2 advantages : better index and more SOF questions = more audience
and more confidence in finding an answer for future developers 


Today, a lot of developpers are using SOF for copy/paste snipets of
code. It would be great to have same stuff for Apache Royale 

Regards 


Le 29.07.2020 09:41, spiros a écrit :


Hi Carlos,

Yes with an extension to UIBase it was easy to create an Iframe element and 
pass the YouTube url.

When I finally have a stable component I will post it to this thread.

Thanks

Spiros 


-Original Message-
From: Carlos Rovira [mailto:carlosrov...@apache.org] 
Sent: Tuesday, July 28, 2020 4:19 PM

To: Apache Royale Development
Subject: Re: Youtube Video embeding

Hi Spiros,

Yes, Youtube should be easy to integrate in a Royale App. I think we don't
have a component right now for that but since Youtube used to be
embedded via iframe in a web page that should not be a problem. I think
there's already some components that allow you to use an iframe in royale
that you could try, or just try some basic example and try to use in Royale
meanwhile we add some official components.

To All, someone has the time to create some basic video component anc
contribute?

Thanks

El mar., 28 jul. 2020 a las 10:52, spiros () escribió:


Hi,

Is it possible to embed a youtube  video to royale application ?

Best regards

Spiros


--
Frédéric Gilli 


mob.0668542622

http://www.cristallium.com

[1]



Links:
--
[1] http://www.cristallium.com

Re: I'm struggling with RemoteObject (AMF)

2020-07-03 Thread contact
Hugo, 

You are welcome, I'm happy knowing you can go on on Royale :) 


The big issue with CORS is that is can fail silently. Some browser
doesn't show issue. 


For your case, one of your screenshoot showed "reset session", but no
more... very difficult to know it deals for CORS 


Perhaps documentation on using AMF with Apache Royale should be more
warning of this potential issue for dev guys. 

Regards 


Le 03.07.2020 10:41, Hugo Ferreira a écrit :


Hi Fred,

Thank you very much !
It was a CORS issue !
I'm using Google Chrome in debug mode + Charles Web Proxy.

Regards,
Hugo.

 escreveu no dia sexta, 3/07/2020 à(s) 08:57:

Hi Hugo,

I'm not sure what is your issue. Did you try to usee developer console
of chrome or firefox (CTRL+MAJ+I) to look at network frames and see
request and server response ?

Do you have a look at :

https://stackoverflow.com/questions/58241175/how-to-use-amfphp-with-apache-royale

and

https://stackoverflow.com/questions/58240043/how-to-disable-cors-on-chrome-when-using-visual-studio-code-and-using-amf-on-apa

Be carrefull that "--disable-web-security" for Chrome is not working
with last Chrome version. So if you dev env is not on same domain as
your service then session will not work

If it may help, here is my Apache Royale code to call remote functions
with AMF :

import mx.rpc.AsyncToken;
import mx.rpc.Responder;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import org.apache.royale.events.EventDispatcher;
import mx.rpc.remoting.RemoteObject;
...

public function ServiceCaller()
{
_ro = new RemoteObject();
_ro.source = "your_service_class_name_to_call";
_ro.addEventListener(FaultEvent.FAULT,onFaultEvent);
_ro.endpoint = _gatewayURL;
_ro.destination = "amfphp";
}
...
To make the call :

public function callService(name:String, listener:Function,
args:Object):void
{

var pos:int =  name.indexOf(".");
if (pos == -1) return;
var ops:Array = name.split(".");
var r:Responder = new Responder(listener, onFaultEvent);
_ro.source = ops[0];
var t:AsyncToken = _ro.getOperation(ops[1]).send(args);
t.addResponder(r);
}

Regards
Fred

Le 03.07.2020 02:11, Hugo Ferreira a écrit :

I'm struggling with RemoteObject (AMF).

Trying to contact from Royale:

https://drive.google.com/file/d/19MQ1yFYxWMPCmPGw-9FsHoHVYmGzG7oh/view?usp=sharing
 Trying to contact from Flex:

https://drive.google.com/file/d/1J2M__rxQzwOayoNr2e96xrmryptxFsne/view?usp=sharing 
Royale uses GET and Flex uses POST.

I don't know if this is the issue but kept my attention.

This backend is .NET with an implementation of AMF for .NET Standard
however it's working fine for Flex for 7 years.

Re: I'm struggling with RemoteObject (AMF)

2020-07-03 Thread contact
Hi Hugo, 


I'm not sure what is your issue. Did you try to usee developer console
of chrome or firefox (CTRL+MAJ+I) to look at network frames and see
request and server response ? 

Do you have a look at : 


https://stackoverflow.com/questions/58241175/how-to-use-amfphp-with-apache-royale


and 


https://stackoverflow.com/questions/58240043/how-to-disable-cors-on-chrome-when-using-visual-studio-code-and-using-amf-on-apa


Be carrefull that "--disable-web-security" for Chrome is not working
with last Chrome version. So if you dev env is not on same domain as
your service then session will not work 


If it may help, here is my Apache Royale code to call remote functions
with AMF :

import mx.rpc.AsyncToken; 
   import mx.rpc.Responder; 
   import mx.rpc.events.FaultEvent; 
   import mx.rpc.events.ResultEvent; 
   import org.apache.royale.events.EventDispatcher; 
   import mx.rpc.remoting.RemoteObject; 
... 

  public function ServiceCaller()  
   { 
   _ro = new RemoteObject(); 
   _ro.source = "your_service_class_name_to_call"; 
   _ro.addEventListener(FaultEvent.FAULT,onFaultEvent); 
   _ro.endpoint = _gatewayURL; 
   _ro.destination = "amfphp"; 
   } 
... 
To make the call : 


public function callService(name:String, listener:Function,
args:Object):void 
   { 

   var pos:int =  name.indexOf("."); 
   if (pos == -1) return; 
   var ops:Array = name.split("."); 
   var r:Responder = new Responder(listener, onFaultEvent); 
   _ro.source = ops[0]; 
   var t:AsyncToken = _ro.getOperation(ops[1]).send(args); 
   t.addResponder(r); 
   } 

Regards 
Fred 


Le 03.07.2020 02:11, Hugo Ferreira a écrit :


I'm struggling with RemoteObject (AMF).

Trying to contact from Royale:
https://drive.google.com/file/d/19MQ1yFYxWMPCmPGw-9FsHoHVYmGzG7oh/view?usp=sharing
Trying to contact from Flex:
https://drive.google.com/file/d/1J2M__rxQzwOayoNr2e96xrmryptxFsne/view?usp=sharing

Royale uses GET and Flex uses POST.
I don't know if this is the issue but kept my attention.

This backend is .NET with an implementation of AMF for .NET Standard
however it's working fine for Flex for 7 years.

Re: [DISCUSS] Coming back to collect requirements for the release process

2020-04-01 Thread contact
Hi Guys, 

I'm just a user, look at the date on this link : 

https://royale.apache.org/apache-royale-v0-9-6-released/ 

=> October 8, 2019 ! 

Soon six month, ask users if they want a new release asap : +1 for me 

Go ahead, thanks for your hard works and long life to Apache royale :-) 


Le 01.04.2020 10:20, Christofer Dutz a écrit :


Yeah,

I think you folks need to decide which way you want to go ... this Yoyo process 
at the moment isn't brining the project any further, just further apart.

I think you have to decide, do you want releases or do you want 100% 
reproducible releases, but can wait for the compiler problems being fixed and 
the tooling being built (could probably take a while) ... you did a great job, 
I have to say, getting this far, but for truly reproducible SWC/SWFs still some 
work needs to be put in there.

Speaking about it ... I couldn't find any discussion or vote thread where the 
project actually decided to go for reproducible builds ...

I think with the requirement document I described what I could envision you folks doing and how you could achieve the different aspects of a release. 
I stand 100% behind what I wrote in that document. Also I think that my investment over the past weeks has shown that I do care to help you folks. 
If I wanted to harm the project, I wouldn't have put this much work into it. 


And ... I did do a full release and the output did work in any IDE I tested it 
in (Moonshine and VSCode). The source-bundles compiled without any issues in 
Ant and Maven and the Maven artifacts worked perfectly in my test project. So 
technically speaking I don't quite know what you are missing.

I guess now it's up to you, if you want to keep on going round in circles or get releases out. 

I'll be waiting for you folks to do some decisions that we can stick to. And with decisions, I am referring to the entire project, not just the typical 4-5. 
I mean ... you're 14 PMCs, 2 committers and quite some users on this list ... please express your opinions.


Chris

Am 01.04.20, 09:36 schrieb "Carlos Rovira" :

Hi Piotr,

I'd go and we could have a release soon, but I'm afraid we're not working
good as a group.

I created a build tools that nobody discussed but Alex, or voted but Chris
or myself.

To avoid me going over another here I announced that I left my RM position
to Alex and Yishay to take over, since was the people interested and with
most things agains the simple maven release process, but nobody said
anything about it...

Now I see emails from CI server running steps, so don't know if is Alex
taking over, or just is testing since he just discuss but does not clearly
take the turn announcing it...

If we want to go we need people clearing backing it. Build tools release
can be just few hours if we collect 3 +1 soon or at least 72h, I think that
easy and maybe the problem was that I did over weekend? or was nobody was
interested in we to succeed?

then 0.9.7 can be prepared in about 1 hour, if we don't find more issues
down the line, since is the first time doing this (although Chris tested in
his own nexus)

Difficult to do anything this way. We already spend many time fixing things
and just find opposition, seems just you is backing us at the moment right
now.

I know people is tired of so many discussions but the reality is release
still undone, and in this way more months can pass...

just would like that people that wants to go with CI server work in fix the
problems Chris and I reach it soon and the release. And most important:
don't impose the process to others, but days pass without clear steps to do
as a community.

All this days what I'm asking to go is to be backed to do so...what will do
gladly

Thanks PIotr, since at least you are pronouncing!

Carlos

El mié., 1 abr. 2020 a las 7:49, Piotr Zarzycki ()
escribió:


Let's move forward with whatever you have guys :)

On Wed, Apr 1, 2020, 12:51 AM Carlos Rovira 
wrote:

> Hi Alex,
>
> so I finally understand that you're in favor of all RM need to run Maven
> and ANT in the release process duplicating the effort, and in the future
> for each new build system we could add (potentially), add it too. So if
we
> end having (let's imagine), 5 build systems, an RM will need to run all
the
> 5. Is that correct?
>
> But what's the purpose to do that? I don't understand at all.
>
> Release is not build (I think we're always mixing don't now why). And we
> should be able as RMs to work with just one system that ensures a release
> in good conditions, often, easily and generating the right bundle, and
> respect the rest of build systems so are available for the people
> interested to use it.
>
> Then people voting just need to revise release as always, some will
decide
> to run Maven, others Ant, and will test using the SDK to build their apps
> and see if all is ok and that's all. SDK build with Maven is now
fully
> working (or at least I'm using is in VSCode and I still didn't find
> problems), as well can be 

Re: Releasing: Finally giving up

2020-03-26 Thread contact

Hi Guys,

I'm a lover of Flex dev guy since more than 10 years, been members of
Flex group on Montpellier (France) at golden age of Flex and go at all
conferences when Michaël Chaize came to Montpellier (and using Flex
every day).

First of all I want to thank every one of you for your hard work, and
congratulate you for the actual Apache Royale capabilities.
With the last features (especialy datagrid), today your great work make
possible to use Apache Royale in business application. Of course, there
are bugs, but when reported, it's quickly fix, this is great.

Now, this is a huge opportunity but also risk for all guys like me to
adop Apache Royale for futur projects or use it instead of using Air
when it's possible.
Personnaly, I first use it on my own Webs applications and perhaps for
my customers on little applications for the begin. My big enormous worry
is to use it and be alone in front of a SDK bug. 
Seeing new release every 1 or 2 months should certainly reassure me. For

now I see SDK 0.9.7 since a lot of time and this make me affraid and I
don't understand why there is no 0.9.8.

I'm speaking as an Apache Royale SDK user : I'm very sad to read these
debates on the subject of tools to use for making release. I don't care
about tools nedeed or not to build the release SDK.
I would like use Apache Royale to build RAD (Rapid Application Dev) Web
applications and see more and more SDK features added, and participate
to project (like today) by reporting bug  by using my time on isolate
the bug and make tests cases with screenshoots to save your time in
fixing it. 


Using Reac, Bootstrap, AngularJS or other similar is a back to 80's. How
can I explain my customer that I need 3 ou 4 days to make thinks that
took me 1 day with Flex ? 
The big competitive advantage of Apache Royale is not only be able to

re-use Flex apps but is also simplicity and time saving where other SDK
can't do it. (I think you already know that)

I am convinced that all guys like me will jump using Royale when they
will know that there is a bug free SDK with fast evolution available.
(unfortunaly it's not known enough, nobody know someone working in
newspapers ?) 


So please, I beg you, don't waste your time on things that are not
essential and like Carlos said, go forward. From outside view, Apache
Royale stay sticky to 0.9.7. 


You are so close of a v1.0, I hope see it very soon and other releases
with bugs fix every 1, 2 or 3 months.
Consider my comments as support and not criticism.

Thanks again for your hard work.

Long life and success to Apache Royale !

Fred

Le 26.03.2020 09:26, Carlos Rovira a écrit :


Hi,

that's amazingly simple, so I think we should go that way without doubt. I
think reached this point there's a clear sense of that we need to go that
route.

We tried our best to stick with the previous process and we're all
loosing lots of time. Then currently seems no more people in the community
was interested in this thread, event to comment a single line (here or in
the other users list thread), what means that or there's no more people
like us in this project or people really is not interested and just want us
to release and go forward.

As previously I think most of the PMCs here (Om, Josh, Greg and me for
sure), probably Yishay for his concise comments are more for this.
My thinking is that the right now I think only 2 PMCs are for CI Server,
and other one that is uncertainly but didn't try the CI Server.

I think all can live together while is not a must for the rest that don't
want it the others option, so what's about if we release with the
super-simple steps Chris proposal, and others wanting to use CI do that
when is their RM turn ? (of course maintaining it and making it work for
his release without requiring nothing for the rest that doesn't want it).

Release as other projects do is recommended but not required, the same as
the actual CI server (but this one should be less recommended since is a
royale-only practice not seen in any other place).

What's the important thing is to release, do it, and do it easily and often.

Thanks

El jue., 26 mar. 2020 a las 8:24, Christofer Dutz (<
christofer.d...@c-ware.de>) escribió:


Ok,

I'll write this a last time as I do feel like we're going in circles and
will from now on not participate in any discussion involving releasing on a
CI server.

A correct Maven release would use (There will be some additional profiles
to activate to include all modules)

1) the "mvn release:branch" call in order to create the branch and bump
the version of develop to the next version.
2) the "mvn release:prepare" to change the pom to the release version, set
the timestamp in the pom (for reproducible builds) build ... if all tests
are good, commit the changes, tag this commit, update the poms to the next
development version, commit those changes and push everything.
3) the "mvn release:perform" which will checkout the tagged version build
everything with the 

Re: Jewel ButtonBar and DataGrid first iteration! :)

2019-12-29 Thread contact
Hi Carlos, 

Thanks for this work on DataGrid. For me it was the last missing
component needed to make business applications. 

Do you think adding sorting columns on header click ? 

Regards  

Le 28.12.2019 11:37, Carlos Rovira a écrit :

> Hi all,
> 
> just want to share a tweet about the latest iteration of Jewel DataGrid.
> This covers scrolling and other issues with dimensions and sizing.
> Will try other examples in the next days adding combos, checks and more
> item renderer visualizations.
> 
> https://twitter.com/ApacheRoyale/status/1210870204001116160
> 
> As always share,  retweet and enjoy!! :)
> 
> Carlos
> 
> El vie., 13 dic. 2019 a las 1:20, Greg Dove ()
> escribió:
> 
> That looks awesome! Great work, Carlos :)
> 
> On Fri, Dec 13, 2019 at 1:15 PM Carlos Rovira 
> wrote:
> 
> Hi Andrew,
> 
> you can see a new version of TDJ uploaded with the current examples :
> https://royale.apache.org/tourdejewel/#
> 
> Enjoy! :)
> 
> Carlos
> 
> El vie., 13 dic. 2019 a las 1:12, Andrew Wetmore ()
> escribió:
> 
> This is great news! I can't wait to play with them.
> 
> On Thu, Dec 12, 2019 at 8:05 PM Carlos Rovira  wrote:
> 
> Hi,
> 
> just committed my work on Jewel ButtonBar and DataGrid. I think these
> components was long awaited and finally we have it here! :)
> 
> Just let you know that I tried my best to have this iteration as most
> stable as possible, but consider that I still need to do some work in some 
> areas.
> I wanted to try to have the API stable so don't need a change when
> completing next iterations, but this is nothing I can guarantee ;)
> 
> ButtonBar supports typical emphasis styles in Jewel Buttons as well
 other 

>> things from Jewel Layouts. I think I'll need to make its own
 extension 

> of the model
> and I'm still thinking about the different width types from Basic version. I 
> must see if the current ones are sufficient of I need to implement more. 
> About DataGrid, I wanted to have a first version where:
> 
> - roll over is supported (this will do with a change of styles to
 be 

> more flexible and can be controlled not only by hover with the
 mouse) 

>> - Have a default width like in flex where columns are sized to 1/n
>> columns of the total available space
>> - Have a layout based on columnWidths
>> - Get an initial Jewel look and feel that as well have the things
 in 

> ButtonBar like emphasis color
> 
> Still to do most important:
> 
> - sorting of columns
> - resizing of columns
> 
> Other things that should come (depending on how important are this
 ones): 

>> - editable cells
>> - reordering of columns
>> 
>> Tour De Jewel has a few initial examples, and I hope to add more like
>> ButtonBar with icons in the buttons or other kind of renderers like
>> ToggleButton? will see...
>> 
>> A couple of things more:
>> 
>> - Since this components comes from the work in Basic, many of the
> design 
> 
>> is from there, but while transforming to Jewel I could see some
 things 

>> that
>> I could fix that maybe could be good to make as well in Basic
> versions, 
> 
>> for
>> example, Basic DataGridView creates most of the things in
 initComplete 

>> handler, while in Jewel all is done in the strand - createChildren
>> method.
>> There's some methods and events in Basic version not used that
 could 

> becleaned, and many events for "layoutNeeded" dispatched that seems
 can 

> be 
> 
>> removed, and other things that could be compared to try to improve
> Basic 
> 
>> one.
>> - I know she things in Jewel versions to be fixed from tomorrow,
 so 

> think that this is a first version of complex components, so I'll
> continue
> to work on this in the next days to continue improve things. For
> example in
> some configurations refreshing the component will not do what we
> exepect...
> just give some more days to go over it.
> 
> Hope you like it! :)
> 
> --
> Carlos Rovira
> http://about.me/carlosrovira
> 
> --
> Andrew Wetmore
> 
> http://cottage14.blogspot.com/

--
Carlos Rovira
http://about.me/carlosrovira

-- 
Frédéric Gilli 

mob.0668542622

http://www.cristallium.com

 [1]

 

Links:
--
[1] http://www.cristallium.com

Re: [Discuss] DataGrid DataGridColumn basic component

2019-10-21 Thread contact
Hi Alex, 

Thanks for your message and all explanation. 

Effectively I didn't see DataGridPercentageLayout bead because when
using code completion there is only DataGridPercentageView wich is show
and I don't think to look at SDK files content. (
DataGridPercentageLayout is not usable in mxml) 

So I used DataGridPercentageLayout like this :

.PercentageColumnWidths { 
IBeadLayout:
ClassReference("org.apache.royale.html.beads.layouts.DataGridPercentageLayout");

} 
  and add className="PercentageColumnWidths" to DataGrid 

This is working great ! So no need to change it. (and no need to add
DataGridPercentageView in mxml, I didn't investiguate why...) 

Thank a lot for your work 

Regards 

Le 21.10.2019 17:54, Alex Harui a écrit :

> Hi, 
> 
> I see a DataGridPercentageLayout bead, which you did not mention, so you 
> probably need that to go with DataGridPercentageView.  If that doesn't work, 
> let us know, however, I've got a lot of other issues in my queue before I can 
> take a serious look at this. 
> 
> However, one thing to keep in mind about Basic and Express is that they 
> emphasize the Pay-as-you-go (PAYG) philosophy, which is quite different from 
> Flex which was more of a one-size-fits-all philosophy.  Your situation is a 
> good example of the difference PAYG creates between Flex and Royale. 
> 
> In Flex (and in fact, in the MXRoyale DataGrid) the DataGridColumn has a 
> width property that could take percentage or an actual number.  This requires 
> code to check if the DataGridColumn is using percentage or actual number.  
> This extra checking occurred in many places in Flex in order to have one 
> DataGrid that could do anything and other optional features of other 
> components (one-size-fits-all).   This made it easier to get started in Flex 
> because you could just add a DataGrid and configure it to your needs, but all 
> of that extra checking needed to be downloaded and run, and it was very rare 
> for someone to want to switch a DataGridColumn from percentage to actual 
> number at runtime. 
> 
> So, in Royale Basic, you choose the beads at compile time that dictate if the 
> DataGrid is going to use percentages for columns or not.  There is a default 
> (actual numbers) but you can get percentages if you need it.  But not only do 
> you need to use a DataGridPercentageView, but you also need to use the 
> DataGridPercentageLayout.  So this is more configuration up front, but in the 
> end, if you only have one DataGrid and it is using percentages, then you will 
> be downloading and running the least amount of code by not carrying around 
> the checks for whether you are using percentages or actual numbers and the 
> code that does layout with actual numbers. 
> 
> Meanwhile, the Express package pre-packages more beads.  Someone could create 
> a set of beads and an Express DataGridColumn that supports your suggestion of 
> having a width property that supports either percentage or actual numbers and 
> add the right Basic beads for that DataGrid.  Or maybe we need a 
> DataGridPercentageWidthColumn.  Or create a set of heavier beads that 
> combines the current actual and percentage beads for DataGrid.  But the Basic 
> DataGridColumn would not have a width property that can handle either 
> percentage or actual numbers.  That kind of thing would go in Express, Jewel, 
> and or other not-so-basic libraries. 
> 
> HTH, 
> 
> -Alex 
> 
> From: "cont...@cristallium.com" 
> Organization: Cristallium
> Reply-To: "dev@royale.apache.org" , 
> "cont...@cristallium.com" 
> Date: Monday, October 21, 2019 at 3:45 AM
> To: "dev@royale.apache.org" 
> Subject: [Discuss] DataGrid DataGridColumn basic component 
> 
> Hi Guys, 
> 
> I try to get a DataGrid working. 
> 
> Tried basic and express one, the basic is the one wich seem working except 
> that we can only use fixed column width. (because DataGridColumn's 
> columnWidth accept only strict number and there is no width property 
> available) 
> 
> There is an issue with bead named DataGridPercentageView  because % width is 
> overwritten on layoutNeeded event by DataGridLayout  
> 
> If we look at DataGridColumn class It seems to me that the property 
> columnWidth (accept only strict number like 50, not '50%' ) should be renamed 
> by width  that would accept number with % or without and that DataGridLayout 
> should handle this. Moreover DataGridPercentageView bead would be useless and 
> we could delete this bead. 
> 
> Could I have your opinions ? thanks 
> 
> Regards

[Discuss] DataGrid DataGridColumn basic component

2019-10-21 Thread contact
Hi Guys, 

I try to get a DataGrid working. 

Tried basic and express one, the basic is the one wich seem working
except that we can only use fixed column width. (because
DataGridColumn's columnWidth accept only strict number and there is no
width property available) 

There is an issue with bead named DataGridPercentageView  because %
width is overwritten on layoutNeeded event by DataGridLayout  

If we look at DataGridColumn class It seems to me that the property
columnWidth (accept only strict number like 50, not '50%' ) should be
renamed by width  that would accept number with % or without and that
DataGridLayout should handle this. Moreover DataGridPercentageView bead
would be useless and we could delete this bead. 

Could I have your opinions ? thanks 

Regards 

-- 
Frédéric Gilli 

mob.0668542622

http://www.cristallium.com

 [1]

 

Links:
--
[1] http://www.cristallium.com

Re: Broken royale-config in JS only build of released Apache Royale SDK 0.9.6

2019-10-10 Thread contact
Hi Guys, 

I would share my experience and feelings as a new and fresh user on
Apache Royale, hope it will help... 

The background : 

I'm a Flex developper since about 10 years. I love it because for me
it's (was...for flashplayer) the fastest way to do something that would
have same render on all browser. Also no lost time on script config or
something else, just launch FlexBuilder set sdk main folder path and
play with it, no headaches ...a real dream for a dev guy. At beginning I
learned Flex essentialy with "TourDeFlex" and "Component style
explorer", and after with somes blogs and articles dealing with
componant life cycle and other interessing stuff 

All my customer are happy because of the short time of devs. When Adobe
announce end of life of flashplayer plugin in browser, solutions like
Angular, React, etc, seems to me and other devs guys from my sourronding
a back to the past. I play a little with these frameworks but for me
it's not the solution : you need to know bootstrap, css, html,
javascript,etc..., this is a real nightmare... and dev time would be
multiply by 2 or 3 on projects even small or big ones. So we move ours
app to Air for those which doesn't need the browser use. 

Discover of Royale: 

I discover Royale because of search for alternate solutions to quick
make browser applications. As I remember, when I meet Michael Chaize 6
or 7 years ago at Montpellier (France), he tells that FalconJS will be
the futur to output Flex content to Javascript. Unfortunaly I thought it
was death because the lack of communication on it. Now I reborn using
Royale, play with it since 2 weeks when I have some time to learn more.
For me, Apache Royale has a huge potential, unfortunaly not enougth
know. 

At first looking, I throught that the sdk was far to do some usefull
advances things, the Royale site seemed to me a little desert, lack of
documentation, some page with empty content (this was my feeling, I
know, how the fantastic works you do, and go on I'm fan). Looking at SOF
on "Apache Royale" tag throught me that there were a very small
community. But I discover TourDeJewel which made me want to know more
about it and do a quick try. But for this I wanted to do a very quick
dev test, I wanted to be able to run an helloword in about 15mins. I
search for a tutorial on how to quick start. The "Get Started" from
Royale site affraid me : help !!! I don't have time to read all theses
explanations to build an helloword... I was about to abandon the idea to
do an helloword until I find this :
https://www.youtube.com/watch?v=bak1zoAXSMg It could be shorter and if
configs files were in a link it would be great. This video is for my
personnal case why succes to do an helloword and wanted to more and more
dig on Apache Royale. Without this video perhaps I would go away from
Royale. 

Now : 

- Will I use Royale to convert big applications I have done ? 

Honestly, I don't know yet because I have more to learn, and some
aspects like Datagrid, itemRenderer, video play are unknow for me now.
(I don't know if it's right working, but I will test it) 

- Will I use Royale to make new browser content ? 

Yes ! Yes ! Certainly, all the mains components seems to be here (I just
have difficult with scrollable Datagrid that I didn't succes to use and
I didn't try performance with big number of lines like 6000 lines). I
don't think I loose my time learning Royale because mains contributors
like you guys take care about questions from other users and efforts to
do your best, 

- Will I tell around me to use Royale  ? 

Yes ! as soon I will show them what I have done with 

My others feelings, issues and thinkings: 

- Royale seems to me easy to use after do a first try and understanding
the difference between all library (js, j, mx, etc...), and concept like
beads. I like to be able to compile without have to make big change in
config files and without spend my time on setting paths config. I don't
really know what's happen when I clic on debug button and I don't really
want to know except if it's necessary. I discover that using browser
tools while debuging is a quick way to lookup css style in code. 

- sometimes I don't know where to put beads (beads dealing with
databindings or css does it global scope or not ...) 

- I see some reading on "reflection" (when using mx I beleve) but I
don't really know what is it and if i's important or not 

- sometimes I do a mix of j(jewel) and js(basic) in mxml but I don't
know if it's a good practice or not. It seems it's working except for
layouts 

- It isn't clear for me why there are 2 versions of SDK. One To create
JavaScript applications only and the other (JavaScript + Flash) . Why
need to create Flash application as we can't use it after 2020 ? Does it
because the possibility to make Air apps ? Or the possibility to use a
swc as a library in javascript ? I will dig this later... 

- I don't know how components lifecycle are working to try to optimize
my code 

- are all