Get data from Model
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> private function bookHandler(theBook:Object):void { trace(theBook.name); trace(theBook.author); } </mx:Script> <mx:Model id="bookStock"> <stock> <name>name</name> <author>author</author> <category>Flex</category> <description> desc </description> </stock> </mx:Model> </mx:Application>