Hi, F.Y.I. The following is a list of imports in the cairngorm source code.
import com.adobe.cairngorm.AllCairngormTests; import com.adobe.cairngorm.business.AbstractServices; import com.adobe.cairngorm.business.IServiceLocator;; import com.adobe.cairngorm.business.ServiceLocator; import com.adobe.cairngorm.CairngormError; import com.adobe.cairngorm.CairngormMessageCodes; import com.adobe.cairngorm.commands.Command; import com.adobe.cairngorm.commands.ICommand; import com.adobe.cairngorm.control.CairngormEvent; import com.adobe.cairngorm.control.CairngormEventDispatcher; import com.adobe.cairngorm.control.TestCairngormEvent; import com.adobe.cairngorm.control.TestCairngormEventDispatcher; import com.adobe.cairngorm.control.TestFrontController; import com.adobe.cairngorm.mocks.MockICommand; import com.adobe.cairngorm.vo.IValueObject; import flash.events.Event; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; import flash.utils.describeType; import flash.utils.Dictionary; import flash.utils.getQualifiedClassName; import flexunit.framework.Test; import flexunit.framework.TestCase; import flexunit.framework.TestSuite; import mx.core.IMXMLObject; import mx.core.mx_internal; import mx.data.DataService; import mx.messaging.Consumer; import mx.messaging.MessageAgent; import mx.messaging.Producer; import mx.resources.ResourceManager; import mx.rpc.AbstractInvoker; import mx.rpc.AbstractService; import mx.rpc.http.HTTPService; import mx.rpc.remoting.RemoteObject; import mx.rpc.soap.WebService; import mx.utils.StringUtil; On Thu, Feb 6, 2020 at 8:49 AM Carlos Rovira <carlosrov...@apache.org> wrote: > Hi Alex, > > I don't have the Cairngorm code at hand, we left it long time ago (maybe > around 2008) in favor of Swiz that was the new generation of frameworks at > that time that brings IOC, DI... > > But I remember there was many flash APIs involved. Maybe most of them are > now emulated in Royale and could be not difficult to do (I,e Reflection). > Maybe other things regarding add to stage events...don't remember well. > Cairngorm was just few classes, so it could be ported in this project with > not much effort for an experienced Royale developer, but not for someone > new here. > > HTH > > Carlos > > El mié., 5 feb. 2020 a las 20:04, Alex Harui (<aha...@adobe.com>) > escribió: > >> Carlos, What Flash APIs is Cairngorm dependent on? >> >> >> >> -Alex >> >> >> >> *From: *Carlos Rovira <carlosrov...@apache.org> >> *Reply-To: *"users@royale.apache.org" <users@royale.apache.org> >> *Date: *Wednesday, February 5, 2020 at 10:05 AM >> *To: *"users@royale.apache.org" <users@royale.apache.org> >> *Subject: *Re: Cairngorm problem add remote object MXML. >> >> >> >> Hi, >> >> >> >> Cairngorm depends on Flash APIs, so make a Royale migration could be not >> easy, or requires some expertise. >> >> You can use Crux instead that has support for Cairngorm style Commands. >> Crux is the same as Swiz Framework for Flex but rewritten to work in >> Royale, and supports much more like dependency injection, Inversion of >> control, event handling, ... >> >> You have 3 examples in the examples/crux folder you can check. >> >> I recommend you Crux over Cairngorm since Swiz was born to substitute >> Cairngorm >> >> >> >> >> >> El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (< >> gustavodeca...@gmail.com>) escribió: >> >> Alex >> >> >> >> <version>0.9.7-SNAPSHOT</version> >> >> >> >> Thank >> >> >> >> El mié., 5 feb. 2020 a las 14:02, Alex Harui (<aha...@adobe.com>) >> escribió: >> >> What version of the compiler are you using? >> >> >> >> What does the ServiceLocator source look like? It might be an issue with >> defaultProperties for non-DOM objects. >> >> >> >> -Alex >> >> >> >> *From: *De Carli Gustavo <gustavodeca...@gmail.com> >> *Reply-To: *"users@royale.apache.org" <users@royale.apache.org> >> *Date: *Wednesday, February 5, 2020 at 7:35 AM >> *To: *"users@royale.apache.org" <users@royale.apache.org> >> *Subject: *Cairngorm problem add remote object MXML. >> >> >> >> >> >> >> I am trying to transcribe gairngorm, at runtime it gives me an error in >> the construction of the ServiceLocator, I understand that it is an error of >> the MXMLDataInterpreter. Anyone have any idea of the problem. >> >> Thank >> >> Gustavo. >> >> >> >> *1. CODE * >> >> >> >> >> >> <?xml version="1.0" encoding="utf-8"?> >> >> >> >> <cairngorm:ServiceLocator >> >> xmlns:fx="http://ns.adobe.com/mxml/2009 >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009&data=02%7C01%7Caharui%40adobe.com%7Cd5763b495d8547e50f7708d7aa65edcc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165227068663207&sdata=JLOGFIXWyvXPtTk3P2zPQLI9K3fVUv61%2B%2FHjYMP2KLE%3D&reserved=0> >> " >> >> >> >> xmlns:mx="library://ns.apache.org/royale/mx >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.apache.org%2Froyale%2Fmx&data=02%7C01%7Caharui%40adobe.com%7Cd5763b495d8547e50f7708d7aa65edcc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165227068673162&sdata=TXCVez5kEcJgl2%2FsWRjS8X7HpV%2BnZGITwRJyed2GumI%3D&reserved=0> >> " >> >> >> >> xmlns:cairngorm="com.adobe.cairngorm.business.*"> >> >> >> >> >> >> <mx:RemoteObject >> >> id="srvSeguridades" >> >> >> >> destination="seguridades" >> >> >> >> result="event.token.resultHandler(event)" >> >> >> >> fault="event.token.faultHandler(event)" >> >> >> >> endpoint="http://localhost:8080/messagebroker/amf"/> >> >> >> >> >> >> </cairngorm:ServiceLocator> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *2. LINE OF ERROR (RED)* >> >> / >> >> >> >> ** >> * @constructor >> * @extends {com.adobe.cairngorm.business.ServiceLocator} >> */ >> services.Servicio = function() { >> services.Servicio.base(this, 'constructor'); >> >> /** >> * @private >> * @type {mx.rpc.remoting.mxml.RemoteObject} >> */ >> this.srvSeguridades_; >> >> /** >> * @private >> * @type {Array} >> */ >> this.mxmldd; >> >> /** >> * @private >> * @type {Array} >> */ >> this.mxmldp; >> >> this.generateMXMLAttributes >> ([1, >> mx.rpc.remoting.mxml.RemoteObject, >> 3, >> 'id', >> true, >> 'srvSeguridades', >> 'destination', >> true, >> 'seguridades', >> 'endpoint', >> true, >> 'http://localhost:8080/messagebroker/amf', >> 0, >> 2, >> 'result', >> this.$EH0, >> 'fault', >> this.$EH1, >> null0, <- ERROR >> 0 >> ]); >> >> }; >> >> >> >> >> >> 3. Trace console log >> >> >> >> Servicio.js:61 Uncaught ReferenceError: null0 is not defined >> at new services.Servicio (Servicio.js:61) >> at >> Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray >> (MXMLDataInterpreter.js:126) >> at >> Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances >> (MXMLDataInterpreter.js:271) >> at main.Main.mx.core.UIComponent.createChildren (UIComponent.js:923) >> at main.Main.mx.core.Container.createChildren (Container.js:136) >> at main.Main.mx.core.Application.createChildren (Application.js:122) >> at main.Main.mx.core.UIComponent.initialize (UIComponent.js:871) >> at main.Main.mx.core.UIComponent.addedToParent (UIComponent.js:417) >> at main.Main.mx.core.Container.addedToParent (Container.js:123) >> at >> Main_mx_managers_SystemManager.org.apache.royale.core.UIBase.addElement >> (UIBase.js:402) >> >> >> >> >> -- >> >> Carlos Rovira >> >> http://about.me/carlosrovira >> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cd5763b495d8547e50f7708d7aa65edcc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637165227068673162&sdata=2pi7HsEBr5zw9jCg%2Fu4OQvPQs9Ys5TFWbQeIZf1IG88%3D&reserved=0> >> >> >> > > > -- > Carlos Rovira > http://about.me/carlosrovira > > -- Shoichiro Takeshita 武下 祥一郎