Re: Cairngorm framework

2019-10-12 Thread Harbs
Here:
https://sourceforge.net/adobe/cairngorm/source/GetSourceCode/ 


> On Oct 12, 2019, at 9:41 PM, Harbs  wrote:
> 
> That link appears to be the documentation.
> 
> This seems to be the actual framework, but all links on this project seem to 
> be broken.
> https://sourceforge.net/adobe/cairngorm/wiki/Downloads/ 
> 
> 
>> On Oct 12, 2019, at 9:38 AM, Alex Harui > > wrote:
>> 
>> It should be possible to emulate Cairngorm similar to how the MXRoyale and 
>> SparkRoyale components emulate the Flex MX and Spark components.  The source 
>> code appears to still be on 
>> SourceForgehttps://sourceforge.net/projects/cairngorm.adobe/ 
>> 
>>  
>> I don’t have time to work on emulating Cairngorm right now.  You could do 
>> it, or hire someone to do it.
>>  
>> HTH,
>> -Alex
>>  
>> From: Takeshita Shoichiro mailto:jl03...@gmail.com>>
>> Reply-To: "users@royale.apache.org " 
>> mailto:users@royale.apache.org>>
>> Date: Friday, October 11, 2019 at 10:39 PM
>> To: "users@royale.apache.org " 
>> mailto:users@royale.apache.org>>
>> Subject: Cairngorm framework
>>  
>> Alex, thanks. 
>>  
>> Appreciate to every one to respond to my question in this thread.
>> --
>> Our Flex application uses Cairngorm framework, which means Cairngorm.swc is 
>> included in lib. 
>> 
>> I think it will not work without Flash.  Is there any solution to work Flex 
>> code that uses Cairngorm with Apache Royale? 
>> 
>> Appreciate any advice in advance.
> 



Re: Cairngorm framework

2019-10-12 Thread Greg Dove
Hi Takeshita,

1. "model" is the same as Cairngorm's vo (value object)?
Answer: Actually 'vo' seems more correct for that example. Those were done
quite quickly and I guess I used a package structure as a template. I will
change that example to use vo as the package name for those later this
week, thanks for raising that.
That example was just a quick attempt to express another example elsewhere
in the full set of examples in a way that worked for Crux. So yes, those
are supposed to be value objects.

2. Is like ServiceLocator mxml required for Crux also?
Answer: The times I have used Crux, yes I set up a 'BeanProvider' that
includes the services. The id used for each service can be used for
injection (which is different to Cairngorm) but provides a way to 'locate'
the service.

3. When sending/receiving to/from application server using RemoteObject,
how it is coded in Crux?
Answer: With the recent work I ported, I was doing that inside the
commands, with an implements ICommand, IResponder type approach (that
wasn't using remoting specifically, but mx services in general).

you can inject the required service into the command (follow on from your
question 2).
[Inject(source="myServiceId")] // the myServiceId corresponds to a service
in the services 'BeanProvider'
public var service:HTTPService; //or RemoteObject

Use of the command pattern is not required though, and I am working on
another app that has the beginnings of Crux integration without using
Commands. it is pretty flexible.

4. Is there any short introduction to migrate from Cairngorm to Crux?
Answer: No, not yet. Unless someone else tried it in the last 6 weeks, I
guess I am the only one to do this so far. I did it about 6-8 weeks ago for
one client as part of a proof of concept (the goal was to get general
business logic working and one or two view/UI components, the full app work
will come later).
If I get time I will aim to create a guide for that. Or even better (from
my perspective) if you want, I would be happy to provide you with full
support to get things working with Crux if you would be happy to contribute
a guide that will help others to get it working. I think guides are much
better when they directly incorporate the perspective of someone who is
approaching this for the first time. (I'm not making this a condition for
my help, just suggesting it as an option, because we're keen to make it
easy for more people to contribute to Royale).

A couple of things I can remember without going back to look at any
specifics:
For Crux commands:

The execute method has no argument in Crux. In Cairngorm it has the event
as the argument, iirc.
ICommand does not provide access to the event.
implement IEventAwareCommand if you want access to the event in the command.

Global Dispatcher access:
Because the Cairngorm code used a lot of singleton access, I cheated a bit
and matched that for some of the code I was porting.
I created a DispatcherAccessor with singleton access which I can probably
add to the Crux lib as a util class for this type of thing.
It is just used to inject the main dispatcher in during configuration, then
it can be used elsewhere in a similar way to how the original Cairngorm
code was accessing its global dispatcher. Or you can go full conversion and
switch everything to use injection for dispatcher access, for example.

Note also that the support for processing of View components (the ability
to inject into view components, run PostConstruct methods etc, requires the
'JSStageEvents' bead to simulate stage events. You can see that in the
examples in the main app.



On Sat, Oct 12, 2019 at 8:54 PM Takeshita Shoichiro 
wrote:

> Alex and Greg, thanks.
>
> I'd like to try Crux first.
>
> Greg, several questions for CruxGitHubCommitLogViewer.
>
> 1. "model" is the same as Cairngorm's vo (value object)?
> 2. Is like ServiceLocator mxml required for Crux also?
> 3. When sending/receiving to/from application server using RemoteObject,
> how it is coded in Crux?
> 4. Is there any short introduction to migrate from Cairngorm to Crux?
>
> Thanks.
>
>
>
>
>
> On Sat, Oct 12, 2019 at 3:51 PM Greg Dove  wrote:
>
>> Fyi I recently ported a Cairngorm app to Royale replacing cairngorm with
>> Apache Royale Crux (based on Swiz). That part was quite easy. That's
>> another option to consider.
>>
>> On Sat, 12 Oct 2019, 19:38 Alex Harui,  wrote:
>>
>>> It should be possible to emulate Cairngorm similar to how the MXRoyale
>>> and SparkRoyale components emulate the Flex MX and Spark components.  The
>>> source code appears to still be on SourceForge
>>> https://sourceforge.net/projects/cairngorm.adobe/
>>>
>>>
>>>
>>> I don’t have time to work on emulating Cairngorm right now.  You could
>>> do it, or hire someone to do it.
>>>
>>>
>>>
>>> HTH,
>>>
>>> -Alex
>>>
>>>
>>>
>>> *From: *Takeshita Shoichiro 
>>> *Reply-To: *"users@royale.apache.org" 
>>> *Date: *Friday, October 11, 2019 at 10:39 PM
>>> *To: *"users@royale.apache.org" 
>>> *Subject: 

Re: Cairngorm framework

2019-10-12 Thread Harbs
That link appears to be the documentation.

This seems to be the actual framework, but all links on this project seem to be 
broken.
https://sourceforge.net/adobe/cairngorm/wiki/Downloads/ 


> On Oct 12, 2019, at 9:38 AM, Alex Harui  wrote:
> 
> It should be possible to emulate Cairngorm similar to how the MXRoyale and 
> SparkRoyale components emulate the Flex MX and Spark components.  The source 
> code appears to still be on 
> SourceForgehttps://sourceforge.net/projects/cairngorm.adobe/ 
> 
>  
> I don’t have time to work on emulating Cairngorm right now.  You could do it, 
> or hire someone to do it.
>  
> HTH,
> -Alex
>  
> From: Takeshita Shoichiro 
> Reply-To: "users@royale.apache.org" 
> Date: Friday, October 11, 2019 at 10:39 PM
> To: "users@royale.apache.org" 
> Subject: Cairngorm framework
>  
> Alex, thanks. 
>  
> Appreciate to every one to respond to my question in this thread.
> --
> Our Flex application uses Cairngorm framework, which means Cairngorm.swc is 
> included in lib. 
> 
> I think it will not work without Flash.  Is there any solution to work Flex 
> code that uses Cairngorm with Apache Royale? 
> 
> Appreciate any advice in advance.



Re: Future proof Flex/Flash apps.

2019-10-12 Thread Paul Stearns
Carlos:

The applications we have written really do want to be desktop applications. 
Having a small subset of functionality for mobile use would be beneficial for a 
few of the applications we support. Mostly however these are data entry focused 
applications. One of the applications captures over 200 data elements in a 
single data entry screen with complex business rules, using a tabbed interface.

With Royale, I have some questions/concerns;

Will it be around for 10 years?How many users/companies have adopted Royale?Are 
there any applications, perhaps with similar look & feel.as what this app 
shows, already functional in Royale? If not similar, at least some applications 
I can see and touch.I use FluorineFX as my data layer interface. Will that be 
transportable?
Thanks for your help.

Paul R. Stearns
Advanced Consulting Enterprises, Inc.

15280 NW 79th Ct.
Suite 250
Miami Lakes, Fl 33016

Voice: (305)623-0360 x107
Fax: (305)623-4588


From: Carlos Rovira 
Sent: 10/12/19 4:48 AM
To: "pa...@compuace.com" , us...@flex.apache.org
Subject: Re: Future proof Flex/Flash apps.
Hi Paul,

as Alex I think your best route is to join us in Apache Royale mailing
lists [1] and try emulation components. This will be the fastest way to
migrate to html/js touching almost no code. Royale is now in a very good
state for everyone to start using it. I encourage you to join our community
and get started here [2]

[1] https://royale.apache.org/mailing-lists/
[2] https://apache.github.io/royale-docs/get-started

best

El sáb., 12 oct. 2019 a las 8:56, Alex Harui ()
escribió:

> From 3 minutes of playing around with it, if you are looking to minimize
> code changes and don't want a more modern UI, then the emulation component
> set (MXRoyale and SparkRoyale) would be a good place to start. The
> emulation set is still a work-in-progress, but it gets better every day,
> and, IMO, it would be better for the Royale community if you could invest
> some of the time saved from not having to change so much code towards
> further improving MXRoyale and SparkRoyale as that will make the migration
> effort easier for the next person.
>
> My 2 cents,
> -Alex
>
> On 10/11/19, 3:21 PM, "Paul Stearns" wrote:
>
> So that I could get better feed back on which route I should take, I
> have created a demo version of one of my applications.
>
> This is a time accounting application which we developed and use
> internally to keep track of hours to pay consultants and bill clients.
>
> The URL is
> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fflex.yozyo.net%2Fproduction=02%7C01%7Caharui%40adobe.com%7C4a2af1131ac649033a3108d74e996a26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C637064293129036355=FQ0%2BwXpZSL%2FqNwOXZRp6zQFSYiBrmFdVYgl1gAdSaGc%3D=0
>
> To login, you can use either;
>
> U: dmanager
> P: mpassword
>
> U:duser
> P:UPASSWORD
>
> It requires popups to be enabled. The application provides a self
> contained desktop like application with the ability to have multiple panels
> open simultaneously. While this is a test system, and you are welcome to
> muck about and save data please don't intentionally try to break it.
>
> My goal is to end up with an application with a similar look and feel
> to what is provided using something that won't die in December 2020. Of
> course the less work to get from here to there will be the best approach.
>
> Paul R. Stearns
> Advanced Consulting Enterprises, Inc.
>
> 15280 NW 79th Ct.
> Suite 250
> Miami Lakes, Fl 33016
>
> Voice: (305)623-0360 x107
> Fax: (305)623-4588
>
>
>
>
>

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




excludeFrom vs visible & includeInLayout

2019-10-12 Thread Serkan Taş

Hi Herbs,

As you mentioned before, after updating the latest sources from github 
my actual problem is clearly related with the state concept, especially 
excludeFrom.


According to your advises I tried using  visible & includeInLayout,

eg. :

includeInLayout="false" >


It did not work because when using excludeFrom the component is not 
created until the state is changed. But with the second option the 
component is created, and due to architecture of my application flow,

throws exceptions related with created components that shouldn't be.

I have 2 options :

1. Reconstruct my whole application as the excludeFrom will never work
2. Try to find out why excludeFrom is not working

Which why should I go through ?

Thanks.





Issue in launching my application with latest sdk.

2019-10-12 Thread Alina Kazi
Hi Alex,

We have downloaded latest sdk 0.9.6 and compiled our Application
successfully, After making some changes in code that is : we have replaced
parentComponent to parentMxmlDocument in our all .as and .mxml files.
Application shows blank screen on browser,when we launch index.html.

I have tested existing module example available in sdk and the example is
working fine and loading the module.

But our project do not show module on screen.
We are debugging the issue for 3 days.
Can you please help us.

Thanks and Regards,
Alina kazi


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

2019-10-12 Thread Serkan Taş

Hi Harbs,

Today I after updating the repo, I can say that I can not see the 
exception in my console anymore. Still the layout is awful but no 
exception at all :)


I am going to work on to figure out what is going with layout.

If you and/or Alex like to have a look to the application, I can prepare 
the virtual server for you for the live application but I need a time 
interval  to start the virtual server on google cloud.


Thanks,
Serkan

2.10.2019 10:33 tarihinde Harbs yazdı:

The problem appears to be on line 44.

“non-simple” MXML entires should be an array, but your case is an 
empty array.


I’ve seen this happen when the wrong type is used in the MXML. What 
are you specifying for the itemRenderer? Is it a string instead of a 
reference?


I’ve created an issue that we should catch these errors at 
compile-time, but someone has to work on that… ;-)

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

HTH,
Harbs

On Sep 23, 2019, at 12:27 PM, Serkan Taş 
> wrote:


I tried removing "excludeFrom" but failed with the same error Harbs.

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



data array content :






23.09.2019 10:33 tarihinde Harbs yazdı:
A likely cause of the problem is the “excludeFrom” piece. Definitely 
try to narrow that down.


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


HTH,
Harbs

On Sep 23, 2019, at 8:45 AM, Serkan Taş 
> wrote:


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

23.09.2019 08:40 tarihinde Alex Harui yazdı:
You’ll have to catch the exception in the debugger and find out 
what “cls” is supposed to be. That section of code could be run 
quite often when setting up an MXML-based UI.
The MXMLDataInterpreter is interpreting a data array from some .JS 
file representing an MXML file, and initializeStrandBasedObject is 
trying to initialize some component and probably calls 
generateMXMLObject to create some object that initializes some 
property. You’ll have to figure out what was in the data arrays 
and what went wrong. You should find that generateMXMLObject is 
passed a data array that is part of a different array passed to 
initializedStrandBasedObject.  Knowing what class that 
strandBasedObject is may help you figure out what part of what 
MXML is having a problem.

HTH,
-Alex









Re: Cairngorm framework

2019-10-12 Thread Carlos Rovira
Hi Takeshita,

I think you already get the link to Crux actual examples in our repo here
[1]. For documentation, the official Swiz Framework doc for Flex should be
of help here [2] while we create ours in Royale docs for Crux that should
be very near to that one but considering the needs and changes for Royale.

@Greg Dove  since the Cairngorm command addition for
Crux was added recently at later time, I think we don't have example code
about how to use it. Can you post some example code here so we can know how
to wire it in a normal Crux app? I think it will be of help for the rest of
us.

[1] https://github.com/apache/royale-asjs/tree/develop/examples/crux
[2] https://swizframework.jira.com/wiki/spaces/SWIZ/overview



El sáb., 12 oct. 2019 a las 9:54, Takeshita Shoichiro ()
escribió:

> Alex and Greg, thanks.
>
> I'd like to try Crux first.
>
> Greg, several questions for CruxGitHubCommitLogViewer.
>
> 1. "model" is the same as Cairngorm's vo (value object)?
> 2. Is like ServiceLocator mxml required for Crux also?
> 3. When sending/receiving to/from application server using RemoteObject,
> how it is coded in Crux?
> 4. Is there any short introduction to migrate from Cairngorm to Crux?
>
> Thanks.
>
>
>
>
>
> On Sat, Oct 12, 2019 at 3:51 PM Greg Dove  wrote:
>
>> Fyi I recently ported a Cairngorm app to Royale replacing cairngorm with
>> Apache Royale Crux (based on Swiz). That part was quite easy. That's
>> another option to consider.
>>
>> On Sat, 12 Oct 2019, 19:38 Alex Harui,  wrote:
>>
>>> It should be possible to emulate Cairngorm similar to how the MXRoyale
>>> and SparkRoyale components emulate the Flex MX and Spark components.  The
>>> source code appears to still be on SourceForge
>>> https://sourceforge.net/projects/cairngorm.adobe/
>>>
>>>
>>>
>>> I don’t have time to work on emulating Cairngorm right now.  You could
>>> do it, or hire someone to do it.
>>>
>>>
>>>
>>> HTH,
>>>
>>> -Alex
>>>
>>>
>>>
>>> *From: *Takeshita Shoichiro 
>>> *Reply-To: *"users@royale.apache.org" 
>>> *Date: *Friday, October 11, 2019 at 10:39 PM
>>> *To: *"users@royale.apache.org" 
>>> *Subject: *Cairngorm framework
>>>
>>>
>>>
>>> Alex, thanks.
>>>
>>>
>>>
>>> Appreciate to every one to respond to my question in this thread.
>>>
>>>
>>> --
>>>
>>> Our Flex application uses Cairngorm framework, which means Cairngorm.swc
>>> is included in lib.
>>>
>>> I think it will not work without Flash.  Is there any solution to work
>>> Flex code that uses Cairngorm with Apache Royale?
>>>
>>> Appreciate any advice in advance.
>>>
>>>
>>>
>>>
>>>
>>
>
> --
> Shoichiro Takeshita
> 武下 祥一郎
>
>
> 
>  ウイルス
> フリー。 www.avast.com
> 
> <#m_-7451021344081565586_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>


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


Re: Cairngorm framework

2019-10-12 Thread Takeshita Shoichiro
Alex and Greg, thanks.

I'd like to try Crux first.

Greg, several questions for CruxGitHubCommitLogViewer.

1. "model" is the same as Cairngorm's vo (value object)?
2. Is like ServiceLocator mxml required for Crux also?
3. When sending/receiving to/from application server using RemoteObject,
how it is coded in Crux?
4. Is there any short introduction to migrate from Cairngorm to Crux?

Thanks.





On Sat, Oct 12, 2019 at 3:51 PM Greg Dove  wrote:

> Fyi I recently ported a Cairngorm app to Royale replacing cairngorm with
> Apache Royale Crux (based on Swiz). That part was quite easy. That's
> another option to consider.
>
> On Sat, 12 Oct 2019, 19:38 Alex Harui,  wrote:
>
>> It should be possible to emulate Cairngorm similar to how the MXRoyale
>> and SparkRoyale components emulate the Flex MX and Spark components.  The
>> source code appears to still be on SourceForge
>> https://sourceforge.net/projects/cairngorm.adobe/
>>
>>
>>
>> I don’t have time to work on emulating Cairngorm right now.  You could do
>> it, or hire someone to do it.
>>
>>
>>
>> HTH,
>>
>> -Alex
>>
>>
>>
>> *From: *Takeshita Shoichiro 
>> *Reply-To: *"users@royale.apache.org" 
>> *Date: *Friday, October 11, 2019 at 10:39 PM
>> *To: *"users@royale.apache.org" 
>> *Subject: *Cairngorm framework
>>
>>
>>
>> Alex, thanks.
>>
>>
>>
>> Appreciate to every one to respond to my question in this thread.
>>
>>
>> --
>>
>> Our Flex application uses Cairngorm framework, which means Cairngorm.swc
>> is included in lib.
>>
>> I think it will not work without Flash.  Is there any solution to work
>> Flex code that uses Cairngorm with Apache Royale?
>>
>> Appreciate any advice in advance.
>>
>>
>>
>>
>>
>

-- 
Shoichiro Takeshita
武下 祥一郎


ウイルス
フリー。 www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Re: Cairngorm framework

2019-10-12 Thread Greg Dove
Fyi I recently ported a Cairngorm app to Royale replacing cairngorm with
Apache Royale Crux (based on Swiz). That part was quite easy. That's
another option to consider.

On Sat, 12 Oct 2019, 19:38 Alex Harui,  wrote:

> It should be possible to emulate Cairngorm similar to how the MXRoyale and
> SparkRoyale components emulate the Flex MX and Spark components.  The
> source code appears to still be on SourceForge
> https://sourceforge.net/projects/cairngorm.adobe/
>
>
>
> I don’t have time to work on emulating Cairngorm right now.  You could do
> it, or hire someone to do it.
>
>
>
> HTH,
>
> -Alex
>
>
>
> *From: *Takeshita Shoichiro 
> *Reply-To: *"users@royale.apache.org" 
> *Date: *Friday, October 11, 2019 at 10:39 PM
> *To: *"users@royale.apache.org" 
> *Subject: *Cairngorm framework
>
>
>
> Alex, thanks.
>
>
>
> Appreciate to every one to respond to my question in this thread.
>
>
> --
>
> Our Flex application uses Cairngorm framework, which means Cairngorm.swc
> is included in lib.
>
> I think it will not work without Flash.  Is there any solution to work
> Flex code that uses Cairngorm with Apache Royale?
>
> Appreciate any advice in advance.
>
>
>
>
>


Re: Cairngorm framework

2019-10-12 Thread Alex Harui
It should be possible to emulate Cairngorm similar to how the MXRoyale and 
SparkRoyale components emulate the Flex MX and Spark components.  The source 
code appears to still be on SourceForge 
https://sourceforge.net/projects/cairngorm.adobe/

I don’t have time to work on emulating Cairngorm right now.  You could do it, 
or hire someone to do it.

HTH,
-Alex

From: Takeshita Shoichiro 
Reply-To: "users@royale.apache.org" 
Date: Friday, October 11, 2019 at 10:39 PM
To: "users@royale.apache.org" 
Subject: Cairngorm framework

Alex, thanks.

Appreciate to every one to respond to my question in this thread.
--
Our Flex application uses Cairngorm framework, which means Cairngorm.swc is 
included in lib.

I think it will not work without Flash.  Is there any solution to work Flex 
code that uses Cairngorm with Apache Royale?

Appreciate any advice in advance.