I have a number of models in my app and as a debugging help have an
alert fired by a button, which gives me the content of a model.
For example
<mx:Model id="product">
<product>
<name>{fName.text}</name>
<code>{fCode.text}</code>
<discountGroup>{fGroup.text}</discount>
</product>
</mx:Model>
Would give a string:
name: value, code: value, discountGroup: value
I do this the long way:
m += "name: " + product.name;
m += ", code: " + product.code;
m += ", discountGroup: " + discountGroup;
Is there an easier way to achieve this?
Thanks
Andrew
--
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/