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
If you’re used to C and other elemental high level programming languages, you know that 5÷9 = 0 and 10÷7 = 1. ActionScript being higher level than C automatically coerces the quotient of two numbers to the Number class, producing a decimal. To get the correct integer quotient, use the Math.floor function, which drops the
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
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;