File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic