Posts Tagged ‘tips’

Using RSL’s to cache framework libraries

I’ve just switched from “merged into code” to “runtime shared” for framework.swc, datavisualisation.swc and rpc.swc. This brings the mere application code size from 518KB down to a very good 188KB. Only one issue popped up: You need to move up framework.swc under <Project>/Properties/Flex Build Path/Library Path/Flex 3 to be above datavisualisation.swc to properly resolve runtime [...]


Charts and Performance

As you might have seen in the demo, i want to display 100+ charts on a map. Until today, i created a chart-object (along with dataProvider, Series, and stuff) for every view to be displayed. This rendered the application unresponsive for some seconds, showed no progress and consumed lots of memory. While reworking my display [...]


1000+ Children in a Flex-Container

I want to add 1000+ child elements to a flex container that can be moved around with the mouse ( using startDrag / MouseEvent.MOVE). On a first try, i used a Canvas to hold the elements and a class derived from UIComponent as element. Adding 1K of children rendered the application almost completely unresponsive. I [...]


Context menu for DataGrid rows

UPDATE: In Flex beta3 mouseTraget is set for a MENU_SELECT-event, but not for a MENU_ITEM_SELECT. Workaround: Save the mouseTarget in MENU_SELECT and reuse it in its consecutive MENU_ITEM_SELECT event. UPDATE: this will not work with AIR beta2: mouseTarget is null for MENU_SELECT_ITEM and MENU_SELECT in AIR BETA2. I’ve filed a bug at Adobe. If you [...]


Flex builder unable to edit .mxml and .as after crash

After a crash my eclipse did not longer know how to edit .mxml- or .as-files: Unable to create this part due to an internal error. Reason for the failure: The editor class could not be instantiated. This usually indicates that the editor’s class name was mistyped in plugin.xml. The easiest solution i found is on: [...]