There is a much more easier way. I suppose you have your OptionVO in your model. Then you only have to do this:
<mx:List id='myList' change={model.optiopnvo = OptionVO(myList.selectedItem)}/> or whatever you want:
<mx:TextInput id="myText" change="{model.optionvo.propertie = myText.text}"/>
Remember to import the ModelLocator in your mxml file and get an instance of it.
Oriol.
2006/8/27, lostinrecursion <[EMAIL PROTECTED]>:
It's so simple, I can't believe I didn't see it before.
One event and One command can do the work of updating the ValueObject
for my Product. All the event has to carry is the property name it
will update and the value. The format of the value is known to the
Model and doesn't need to be known to the View. So, when it
dispatches, it just puts things where they go.
If you know of a better way, let me know. That sounds like good old
MVC/Cairngorm to me!
-Kenny
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
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/
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

