Category: Flex


I stumbled upon an interested error today while trying to initialize a simple variable in my main mxml file – “Constructor functions must be instance methods”

In this particular case, it turned out that I had given my variable the same exact name as my mxml file, causing the compiler to choke and give me that error. This error shows up not just with coinciding variable names, but component ID’s as well.

Advertisements

So I was working on a project, and realized I needed a way to update my application once it had been deployed. I figured the answer was simple:  add PHP headers to stop caching. Wrong.

That didn’t solve the problem at all.

Continue reading

Wrapping Text in DataGrids

Recently, while developing one of my recent applications, I ran accross this annoying problem with datagrids.

I just could not get the text in the datagrid to wrap around nicely.

Even after throwing in the wordWrap property it still didn’t work:

It turns out that you had to add the “variableRowHeight=true” property to the Datagrid tag!

More fantastic information at Flex Pasta!