about 4 months ago - No comments
After working on my new data visualization project at Grooveshark, I’ve been looking for a way to remove the DataTip “targets”, which I have considered calling “points”, “dots”, and “circles” in my search to turn these little things off. In case you don’t know what they are, here’s a picture: After trudging through the Flex
about 7 months ago - No comments
Sometimes when you’re making a Flex application, you’ll expect a certain piece of code to fail at some point. This is the job of try and catch. For example, say I wanted to loop over a bunch of components I had within an HBox: <mx:HBox id="myHBox"> <mx:Panel title="1"/> <mx:Panel title="2"/> <mx:Panel title="3"/> <mx:Panel title="4"/> <mx:Panel
about 9 months ago - 1 comment
A critical thing to know for any Flex programmer performing data-visualization is the itemRenderer. The itemRenderer in Flex can be a tricky beast, however they’re the best way to interact with content within a datagrid, or the various list controls(tileList, horizontalList, etc). An itemRenderer is basically an object that sits in the list in the
about 9 months ago - No comments
There are four types of basic access in Flex: Access Description public All objects and classes can access private Only objects with the same class can access protected Only objects with the same class or derived classes internal Only objects in the same package(essentially the same directory in flex) There are custom namespaces and other
about 9 months ago - No comments
If you’ve ever wanted to make a datagrid that re-sizes to fit its content, heres how… Make a function that computes the size necessary to accommodate all the data: private function datagridChange():void { var newHeight:int = sampleDG.rowHeight * sampleDG.dataProvider.length //this is for the column headers, and the extra empty row + 2*sampleDG.rowHeight; sampleDG.height = newHeight;