Typed Objects from AS2 to .NET Assembly

View: New views
3 Messages — Rating Filter:   Alert me  

Typed Objects from AS2 to .NET Assembly

by Ed Haack :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Please forgive me if this topic has been covered in this list (I’ve googled far and wide, to no avail), but… Using Fluorine (not FluorineFx)… from the download currently available on the site:

 

I’m having difficulty with sending a strongly typed object from AS 2.0 to a .NET Assembly method. Prior to using the classMappings settings in the web.config, I get the following error:

 

“Could not find a suitable method with name Send”

 

‘Send’ being my method name. However, if I use the classMappings settings, “null” is the value for each of the properties.

 

NOTE: If I use primitives (Hashtables, strings, etc.), the remoting works perfectly.

 

My Question: Is there anything else I should try to get strongly typed objects to pass from my AS to .NET? Any help would be appreciated.

 

Thanks,

 

Ed Haack


_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com

Re: Typed Objects from AS2 to .NET Assembly

by cmatech :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Don't forget to call:
flash.net.registerClassAlias



On Mar 20, 2008, at 7:15 PM, "Ed Haack" <ed@...> wrote:

> Please forgive me if this topic has been covered in this list (I’ve  
> googled far and wide, to no avail), but… Using Fluorine (not Fluorin
> eFx)… from the download currently available on the site:
>
>
>
> I’m having difficulty with sending a strongly typed object from AS 2
> .0 to a .NET Assembly method. Prior to using the classMappings setti
> ngs in the web.config, I get the following error:
>
>
>
> “Could not find a suitable method with name Send”
>
>
>
> ‘Send’ being my method name. However, if I use the classMappings  
> settings, “null” is the value for each of the properties.
>
>
>
> NOTE: If I use primitives (Hashtables, strings, etc.), the remoting  
> works perfectly.
>
>
>
> My Question: Is there anything else I should try to get strongly  
> typed objects to pass from my AS to .NET? Any help would be  
> appreciated.
>
>
>
> Thanks,
>
>
>
> Ed Haack
>
> _______________________________________________
> fluorine mailing list
> fluorine@...
> http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com

_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com

Re: Typed Objects from AS2 to .NET Assembly

by Peter Banfield :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Ed -

I seem to remember not having set anything up in web.config. Instead I simply mapped the classes via the Object.registerClass method in the AS Class I wanted to map.

In the flourine documentation there is a page detailing this step under "Using Flash Remoting/Class mapping"

http://fluorine.thesilentgroup.com/fluorine/index.html

I think I can dig up working code if you get stuck.

Also, I think you have the best name for a programmer ever! :P I'm sure you're tired of hearing that. Sorry.

Peter


Ed Haack <ed@...> wrote:
Please forgive me if this topic has been covered in this list (I’ve googled far and wide, to no avail), but… Using Fluorine (not FluorineFx)… from the download currently available on the site:
 
I’m having difficulty with sending a strongly typed object from AS 2.0 to a .NET Assembly method. Prior to using the classMappings settings in the web.config, I get the following error:
 
“Could not find a suitable method with name Send”
 
‘Send’ being my method name. However, if I use the classMappings settings, “null” is the value for each of the properties.
 
NOTE: If I use primitives (Hashtables, strings, etc.), the remoting works perfectly.
 
My Question: Is there anything else I should try to get strongly typed objects to pass from my AS to .NET? Any help would be appreciated.
 
Thanks,
 
Ed Haack
_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
_______________________________________________
fluorine mailing list
fluorine@...
http://fluorine.thesilentgroup.com/mailman/listinfo/fluorine_fluorine.thesilentgroup.com