
necesito crear una clase que se extienda de RemoteObject para traer preconfigurado todo lo que necesita para la conexion , seria algo como esto
Código ActionScript :
package com.gerft.controls.Servicio { import mx.core.FlexGlobals; import mx.messaging.ChannelSet; import mx.messaging.channels.AMFChannel; import mx.rpc.remoting.mxml.RemoteObject; public class ServicioGerft extends RemoteObject { public function ServicioGerft() { var Canal:AMFChannel = new AMFChannel( "Servidor" ); // Creamos juego de canales var JuegoCanales:ChannelSet = new ChannelSet(); // Establecemos direccion de los servicios Canal.uri = FlexGlobals.topLevelApplication.UrlServicio; JuegoCanales.addChannel( Canal ); } } }
hasta hay no hay problema el problema es al momento de crear el obbjecto atraves de mxml
ya que no me deja utilizar la etiqueta Method

Código XML :
<Servicio:ServicioGerft id="Servicio" destination="Prueba.ClasePersonal" showBusyCursor="false"> </Servicio:ServicioGerft>
encambio con el remoteobject si me aparece la etiqueta
Código XML :
<s:RemoteObject id="Servicio2" destination="Prueba.ClasePersonal" source="Prueba.ClasePersonal" channelSet="{JuegoCanales}" showBusyCursor="true" fault="onConexError(event)"> <s:method name="holaMundo" result="FnResultHolaMundo(event)"/> </s:RemoteObject>
alguien sabe por que no puedo usar esa etiqueta ?
para mi deberia aparecer ya que estoy estendiendo de RemoteObject

cualquier ayuda se los agradeceria de todo corazon
