File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Application Frameworks » Flex
Reply 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: 2231

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: 2231

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 .
 
IntelliJ Java IDE
 
subject: How to call setter Method of ActionScript class with in a Flex Application
 
Threads others viewed
calling javascript function from ActionScript Method
How to include YUI Widgets with in Flex APplication ??
Need help in implementing ActionScript class .
Flex 3
Class With Getter and Setter Methods
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture