Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-10-2012, 05:55 PM   #1
matheusmelato
Registered User
 
Join Date: Jul 2012
Posts: 1
Post [AS3] FluorineFx Mapping Classes Problem

Hi,

I'm trying to Map a class in .NET to Flex using FluorineFx but when i try to cast the received object from .NET in Flex it doesn't work.

That's my Flex Class:
Code:
package modelo {
	
	[RemoteClass(alias="Services.modelo.CursoInfo")]
	public class CursoInfo {
		
		private var _nome:String;
		private var _empresa:String;
		private var _referencia:String;
		
		public function get nome():String {
			return _nome;
		}
		
		public function set nome(value:String):void {
			_nome = value;
		}
		
		public function get empresa():String {
			return _empresa;
		}
		
		public function set empresa(value:String):void {
			_empresa = value;
		}
		
		public function get referencia():String {
			return _referencia;
		}
		
		public function set referencia(value:String):void {
			_referencia = value;
		}
		
		public function toString():String {
			return "Nome: " + nome + "\nEmpresa: " + empresa;
		}
		
	}
	
}
And the .NET class:
Code:
using System;
using FluorineFx.AMF3;

namespace Services.modelo {

	[Serializable()]
	class CursoInfo{

		private String _nome;
		private String _empresa;
		private String _referencia;

		public String nome {
			get {
				return _nome;
			}
			set {
				_nome = value;
			}
		}

		public String empresa {
			get {
				return _empresa;
			}
			set {
				_empresa = value;
			}
		}

		public String referencia {
			get {
				return _referencia;
			}
			set {
				_referencia = value;
			}
		}

		public override string ToString() {
			return "Nome: " + nome + "\nEmpresa: " + empresa;
		}

	}

}
The class attributes are in portugueses because it's the company pratices.

Thanks for all help.
matheusmelato is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:39 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.