Using Cairngorm design patterns I have not found how an application's assets, such as button icons, are to be referenced. My solution has been to declare them in the ModelLocator as follows:
[Embed(source="assets/excel.gif")] public var icon_excel:Class;
Then reference them in the component files as:
<mx:Button icon="{model.icon_excel}" ...
Where model is the ModelLocator instance.
The problem I am experiencing is that once I include a binding to an asset as shown, all subsequent bindings in the component generate bind warnings. I have dozens of declarations in my ModelLocator and they all work fine until I include any of the variables declared as shown above. I could embed the icons in each component but that obviously defeats the purpose of using the design pattern.
So, my question is how should assets be managed using Cairngorm?
Next Topic:
Is there a report generating tool/utility available that can be used with Flex? For occasionally connected clients, deferring reporting to the server is not a good option. I don't find the Flex print capabilities on par with say the CF Report Generator (a banded report design gui).
Finally:
The data management abilities in Flex (ArrayCollections, Filters, etc) are great however, a client (Flash Player) lightweight SQL database would be a fantastic improvement. I have used HyperSonic SQL in Java client OCC applications. This feature and strong printing abilities would make Flex the only choice for serious RIAs. Are any of these features in the works for Flex?
Thank You,
Troy Hofeling
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

