aspose file tools*
The moose likes Flex and the fly likes How to call setter Method of ActionScript class with in a Flex Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "How to call setter Method of ActionScript class with in a Flex Application" Watch "How to call setter Method of ActionScript class with in a Flex Application" New topic
Author

How to call setter Method of ActionScript class with in a Flex Application

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

I have Action class as shown :





Now please let me know how can i access this Action class under my Flex Application and call the setter Method of it to set the value for the name .
For example on entering some data in a TextInput and click of a submit Button , on to the Event Listener , i want to call the set name method of my ActionScript class .

Please share your ideas


Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Why are you using getter and setter methods? Normal practice would be to just just a property. And why does your getter return a different property? Binding will behave differently (in Flex3) when a method is bound rather than a property.

Sounds like you maybe need to go and read the documentation. It will be far quicker than waiting for answers from us.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you Paul ,

Why are you using getter and setter methods?

Because i dont want User to enter any name as he wishes , for example
Inside the setter Method i want to have something like this



2 .And why does your getter return a different property?


It was a Mistake , as i copy pasted the code .
It is actually



Waiting for your replies .
Thanks .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to call setter Method of ActionScript class with in a Flex Application