[flexcoders] Cairngorm separation of action script and mxml

2006-08-01 Thread flxcoder
Hi, I have a component that gets called in the view:component say. Now this component has some functions that do operations to format the data in the format that is required to display on screen. These functions are quite large and ugly. I want to move them to a separate scripts.as file, so they

Re: [flexcoders] Cairngorm separation of action script and mxml

2006-08-01 Thread Paul BH
what you might want to look at is creating an adapter class to format your data, so it would be something like:myList:XMLList = myAdapter.adaptXML(xml)then in myAdapterpublic static function adaptXML(inXML:XML):XMLList{ //do ugly stuff}On 8/1/06, flxcoder [EMAIL PROTECTED] wrote: