Hi Harbs,

mostly agree but for me ArrayCollection, FaultEvent and ResultEvent are
very close to the business logic we don't want to migrate or try to left
untouched.
I think that three classes should have Royale counterparts to reduce
migration pain.

I'm talking more from a user role or someone that wants in the end make the
same Alina is doing with our Avant2 app at Codeoscopic

thanks


2018-02-15 10:15 GMT+01:00 Gabe Harbs <harbs.li...@gmail.com>:

> CloseEvent,FaultEvent and ResultEvent are not really needed in Royale.
> Royale takes a much more “laid back” approach to Events and only creates
> new Event classes when they are absolutely needed.
>
> 99% if the uses of ArrayCollection can be replaced with ArrayList which
> exists in Royale.
>
> Sort and SortField do not exist, but I’ve found that I was able to replace
> my uses with a simple Array sort.
>
> For Alert, you can either use Alert or SimpleAlert. Another option is an
> MDL Dialog.
>
> StringUtil is a direct port from mx. The functions in StringUtil will
> gradually be deprecated in favor of package level functions.
>
> Make sure you really need PopUpManager. Like was already mentioned, you
> can probably just use addElement().
>
> HTH,
> Harbs
>
> On Feb 15, 2018, at 9:06 AM, Alina Kazi <alina.k...@d-bz.com> wrote:
>
> Hi,
>
> I have replaced few imports in Apache Royale Project after comparison in
> terms of functionality.
> As you all are more familiar to Flex and Apache Royale.
> Are these correct substitutes?
> import org.apache.royale.html.Alert; //instead of import mx.controls.Alert;
> import org.apache.royale.events.CloseEvent; // instead of import
> mx.events.CloseEvent;
> import org.apache.royale.net.events.FaultEvent; // instead of import
> mx.rpc.events.FaultEvent;
> import org.apache.royale.net.events.ResultEvent; //instead of import
> mx.rpc.events.ResultEvent;
> import mx.collections.ArrayCollection; //very similar to
> org.apache.royale.collections.TreeData
> import mx.collections.Sort; // No Alternate found
> import mx.collections.SortField;// No Alternate found
> import mx.managers.PopUpManager; //org.apache.royale.core.IPopUp or
> .IPopUpHost
> import org.apache.royale.utils.StringUtil;// instead of import
> mx.utils.StringUtil;
>
> Reference: http://apacheflexbuild.cloudapp.net:
> 8080/job/Royale_ASDoc_Example/lastSuccessfulBuild/artifact/
> examples/royale/ASDoc/bin/js-debug/index.html
>
> Thanks,
> Alina Kazi
>
>
>


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

Reply via email to