Hi friends, I have error when migrate flex to apache royale. The guide you
use is:
https://apache.github.io/royale-docs/create-an-application/migrate-an-existing-app/migrate-from-flex.html
.

This my source code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
      xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

  <fx:Script>
  <![CDATA[
   import mx.events.CloseEvent;
   import mx.rpc.events.*;
   import mx.controls.Alert;
   import mx.collections.ArrayCollection;
   import Clases.*;
   [Bindable]
   public var gatewayLocal:String = "
http://localhost:8081/amfphp/gateway.php";;
   [Bindable]
   public var dpbotones:ArrayCollection = new ArrayCollection();

   private var token:Object;
   private var BOT_CODIGO:int = 0;
   private function nuevo():void
   {
    BOT_CODIGO = 0;
    bancos_vs.selectedChild = registro_cv;

   }

   public function guardar():void
   {
    var botonAlmacenar:BOTONES= new BOTONES();
     botonAlmacenar.BOT_CODIGO = BOT_CODIGO;
     botonAlmacenar.BOT_DESCRIPCION = boton_ti.text;
     token = BOTONES_RO.Guardar.send(botonAlmacenar,"1","empresa25");
   }
   private function ResultadoGuardar(event:ResultEvent):void
   {
    if(event.result == false)
    {
     Alert.show("no");
    }
    else
    {
     Alert.show("yes");
    }
   }
  ]]>
 </fx:Script>
 <fx:Declarations>
  <mx:RemoteObject id="BOTONES_RO" endpoint="{gatewayLocal}"
destination="SERVIDOR" source="SIGNUM.DAO.BOTONES_DAO"
showBusyCursor="true">
   <mx:method name="Guardar" result="ResultadoGuardar(event)"/>
  </mx:RemoteObject>
 </fx:Declarations>

 <mx:Panel width="100%" height="100%" layout="absolute" title="Opciones"
horizontalAlign="center" verticalAlign="top" cornerRadius="4"
horizontalCenter="0" verticalCenter="0">
  <s:HGroup width="100%" >
   <mx:Button label="Nuevo" id="nuevo_btn" width="38" height="38"
click="nuevo()"/>
   <mx:Button label="Guardar" id="guardar_btn" width="38" height="38"
click="guardar()"/>
   </s:HGroup>
  <mx:ViewStack x="0" y="57" id="bancos_vs" width="100%" height="100%">
   <mx:Canvas width="100%" height="100%" id="lista_cv">
    <mx:DataGrid id="bancos_dg" bottom="10" dataProvider="{dpbotones}"
top="38" left="10" right="10" doubleClickEnabled="false">
     <mx:columns>
      <mx:DataGridColumn headerText="BOTON" width="100"
dataField="BOT_DESCRIPCION"/>
     </mx:columns>
    </mx:DataGrid>
    <mx:Label x="10" y="12" text="Opciones:"/>
    <mx:TextInput y="10" id="busqueda_ti" right="306" left="79"/>
    <mx:Label y="12" right="10" textAlign="right" text="{dpbotones.length}"
fontWeight="bold"/>
   </mx:Canvas>
   <mx:Canvas width="100%" height="100%" id="registro_cv">
    <mx:TextInput id="boton_ti" x="129" y="10"/>
    <mx:Label x="10" y="12" text="Nombre de opción:"/>
   </mx:Canvas>
  </mx:ViewStack>
 </mx:Panel>
</s:Application>
***********************But, when making the change respective THE ERROR is
out:
**********************
jul 17, 2019 10:43:20 AM com.google.javascript.jscomp.LoggerErrorManager
println
: SEVERE: ERROR - Cannot read file
C:/Users/equipopc/Documents/uno/bin/js-debug/mx/core/Keyboard.js: Failed to
read: C:\Users\equipopc\Documents\uno\bin\js-debug\mx\core\Keyboard.js, is
this input UTF-8 encoded?
:
: jul 17, 2019 10:43:20 AM com.google.javascript.jscomp.LoggerErrorManager
println
: SEVERE: ERROR - Cannot read file
C:/Users/equipopc/Documents/uno/bin/js-debug/uno.js: Failed to read:
C:\Users\equipopc\Documents\uno\bin\js-debug\uno.js, is this input UTF-8
encoded?
:
: jul 17, 2019 10:43:20 AM com.google.javascript.jscomp.LoggerErrorManager
printSummary
: WARNING: 2 error(s), 0 warning(s)
: 78.257309144 seconds

-- 
*SmartSoft Ltda.*
*Bolívar entre Independencia y Colón*
*Pasaje - El Oro - Ecuador*
*(07) 2 918-102*
*0988613842*
*smartsoftecua...@gmail.com* <smartsoftecua...@gmail.com>
*tecnoinfoec.blogspot.com* <http://tecnoinfoec.blogspot.com>

Reply via email to