RE: [flexcoders] Remote object mapping properties

2005-04-01 Thread Doodi, Hari - BLS CTR










Yes, they should match.





Thanks! 
Hari 



-Original Message-
From: Jeff Krueger
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005
7:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote
object mapping properties



Sorry if this is an obvious one, but
I can't find in any documentation that confirms what I am finding.
My question is does the variable in the actionScript class have to be the
same name as the variable in the java class that it is mapping to. From
what I am seeing it does. Can anyone confirm that?



Thanks



Jeff 














Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] Remote object mapping properties

2005-03-31 Thread Jeff Krueger










Sorry if this is an obvious one, but I cant find in
any documentation that confirms what I am finding. My question is does the
variable in the actionScript class have to be the same name as the variable in
the java class that it is mapping to. From what I am seeing it does. Can
anyone confirm that?



Thanks



Jeff 













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Remote object mapping properties

2005-03-31 Thread Abdul Qabiz

Hi,

 My question is does the variable in the actionScript class have to be the
same name as
 the variable in the java class that it is mapping to. 

YesIf you want to map an ActionScript class to a typed java class on
server, you need to have following things:
 
- Your ActionScript class should have same name as Java class has.
- Property name in ActionScript class should match with property/getter
names in Java class.
- You need to register your class using Object.registerClass(com.Product,
com.Product); Assuming com.Product is java class on server and also in AS..
- Your ActionScript class cannot use properties that are declared as
getter/setter properties using the get and set keywords; the properties must
be real variables. 



For more info, see this page:

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/w
whelp.htm?href=2246.htm

And this page:
http://livedocs.macromedia.com/flex/15/flex_docs_en/0778.htm


Hope that helps... 
 
 
-abdul



From: Jeff Krueger [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 6:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote object mapping properties



Sorry if this is an obvious one, but I can't find in any documentation that
confirms what I am finding.  My question is does the variable in the
actionScript class have to be the same name as the variable in the java
class that it is mapping to.  From what I am seeing it does.  Can anyone
confirm that?

 

Thanks

 

Jeff 

 




Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ . 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Remote object mapping properties

2005-03-31 Thread Jeff Krueger

Thanks for answering my question.  I read both of these links before.
Despite the fact they mention how data types are converted, how arrays are
handled in conversions, how to hide attributes, how to register a class, how
getters and setters effect items I can't find where it states what you did.
So thank you for confirming that.

Thanks

Jeff


-Original Message-
From: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 9:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Remote object mapping properties


Hi,

 My question is does the variable in the actionScript class have to be the
same name as
 the variable in the java class that it is mapping to. 

YesIf you want to map an ActionScript class to a typed java class on
server, you need to have following things:
 
- Your ActionScript class should have same name as Java class has.
- Property name in ActionScript class should match with property/getter
names in Java class.
- You need to register your class using Object.registerClass(com.Product,
com.Product); Assuming com.Product is java class on server and also in AS..
- Your ActionScript class cannot use properties that are declared as
getter/setter properties using the get and set keywords; the properties must
be real variables. 



For more info, see this page:

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/w
whelp.htm?href=2246.htm

And this page:
http://livedocs.macromedia.com/flex/15/flex_docs_en/0778.htm


Hope that helps... 
 
 
-abdul



From: Jeff Krueger [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 01, 2005 6:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Remote object mapping properties



Sorry if this is an obvious one, but I can't find in any documentation that
confirms what I am finding.  My question is does the variable in the
actionScript class have to be the same name as the variable in the java
class that it is mapping to.  From what I am seeing it does.  Can anyone
confirm that?

 

Thanks

 

Jeff 

 




Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
http://docs.yahoo.com/info/terms/ . 





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/