Hi Carlos,
No, I have it in the pom:
<additionalCompilerOptions>
-js-default-initializers=true;
-js-dynamic-access-unknown-members=true; <!-- to access JSON
object graph subobjects -->
-source-map=true;
-compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
-keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
-keep-code-with-metadata=Inject;
-show-binding-warnings=false;
</additionalCompilerOptions>
Hiedra.
-----Mensaje original-----
De: Carlos Rovira <[email protected]>
Enviado el: domingo, 13 de diciembre de 2020 20:39
Para: Apache Royale Development <[email protected]>
Asunto: Re: Crux - RemoteObject do not conect to the backend within a Library
Maybe you need to add: *-js-default-initializers=true*
check this:
https://apache.github.io/royale-docs/create-an-application/optimizations/compiler-configuration-settings.html#default-initializers
El dom, 13 dic 2020 a las 20:25, Maria Jose Esteve (<[email protected]>)
escribió:
> Hello, I am "studying" 😝 and I am facing a problem that I cannot solve ...
> A simple example of authentication (sending credentials and receiving
> ok / nook message):
> - A view to enter loginname and password.
> - A model. LoginModel
> - A controller. LoginController
> - A delegate. LoginDelegate. A single method "login (username: String,
> pwd: String)"
> - An event. LoginSignInEvent.
> - ASP.Net Backend - AMF (FluorineFx endpoint) through "mx: RemoteObject".
> - In App.mxml is the definition and configuration of crux.
>
> The example works perfectly if the controller and the delegate are
> located in the same project as the views (App.mxml, MainContent.mxml)
> but if I put them in a library project it doesn't work:
> Requests from the view reach the controller and also the delegate BUT
> they don't reach the backend.
>
> The only prompt I get on the console, and it also occurs when
> everything works fine, is:
> [WARNING] getStaticConstantsByConvention :: the reflection target
> mx.rpc.remoting.mxml.RemoteObject was not Compiled with default
> initializers enabled
>
> Any idea where I can continue investigating?
> As always, any help will be super-welcome 😝
>
> Thank you all.
> Hiedra
>
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira