Category: Flex

  • Code snippet: pass preloader flashvars to main swf

    Needed some way generic way to get my flashvars from the preloader to the loaded swf I just extend the url with the flashvars like this

  • Distort with drawTriangles()

    Distort with drawTriangles()

    There are a growing number of posts about the technique to distort an image with the drawTriangles() function. But most of those examples create a lot of extra vertices that aren’t needed for displaying the image and more calculation means more CPU consumption. I explain here how to work with verticals and show some basic…

  • Calculate DataGrid height

    I have a dataset with more than 200 items. If I use that as dataprovider of a datagrid and set the rowcount to 10 the datagrid is not alway resizing to the right size. Sometimes I see 10.5 rows. This is a nice solution for that problem: dataGrid.height = measureHeightOfItems(-1, dataGrid.rowCount) + dataGrid.headerHeight;

  • AdvancedDataGrid GroupingCollection and sort

    Here an example of the advancedDataGrid. I’m using a groupingcollection to get all the data from one searchengine in one group [SWF]http://arnomanders.nl/upload/advanceddatagrid/AdvancedDataGridExample.swf, 400, 400[/SWF] One problem that I encounter in the advancedDataGrid is sorting a column on application start. I try to sort the “number of visits” field and it is working for the known…

  • LineChart datatip with degrafa skin

    Here is an example how you skin a DataTip from a LineChart with the help of Degrafa. Source

  • TimeDateAxis

    I’m going to try to shift the focus of my blog a little bit more to examples and away from the “I have this problem bla bla”. Well I just try to blog more because it a bit quiet here. I’m going to post some things that is useful for myself to archive and maybe…

  • What is the deal with application.parameters?

    I send a userId to my application to display a linechart with the application.parameter object. I get the userId parameter inside my application and can trace or alert it and I see the userId on my screen. Ok everything is working fine for now. Then I want to use the userId to call php function.…

  • DataGrid doesn’t update rowCount correctly

    I have an Bindable ArrayCollection with values and DataGrid that should show all the values (or rows) without the ugly scrollbars (I hate scrollbars). This is working correct by setting the rowCount property in DataGrid like this:  rowCount = “this.ArrayCollection.length” the tricky part is when you add items to that ArrayCollection on application run. Somehow…

  • Get the dataprovider of another Line in lineChart?

    In some cases you have 2 different XML files to show 2 different lines in a lineChart. For example you want to compare a companies incomming with another month and each month is in a different XML. In a dataTipRenderer I show the styled data but I can only access data from 1 line. My…

  • Strange behaviour of Tree component

    I’m  making a tree like menu structure. It is already a hacky business but now I encountered another problem. And I have no clue where it is happening and if I do something wrong or Flex is messing it up. I have a Tree component that uses a tree renderer to render the items. In…