Blog

  • CheckBox Item Renderer Example for Flex 2

    My man A&W had some DataGrid woes. He’s now indoctrinated to the hardest part of Flex / Flash Development: Item Renderers. Adobe deserves credit for making these a lot easier with inline editors and some other nice properties. That doesn’t change the fact that they are f’ing hard and time consuming.

    Weirder still is the way you get events from ’em, via event bubbling. Granted, I’m sure rendererIsEditor on the DataGridColumn class works wonders when it works, but at the end of the day, a lot of the itemRenderers and itemEditors you create may need more detail that you want to know about, and bubbling events are a great way to get at that data.

    The gist is, you create an itemRenderer class and set one of the DataGrid columns to use it as an itemRenderer. This GUI MXML or ActionScript component emits an event you care about either using the default flash.events.Event class, or one of your own. This event has its bubbles property set to true. As long as its type doesn’t conflict with events the DataGrid is listening for, it’ll bubble up to the form hosting the DataGrid. There is where you handle the event.

    The trick is you have to use ActionScript to register for the event because the DataGrid doesn’t know about your custom event; it’s not in its metatags. Therefore, MXML won’t work and AS will.

    Source code – Example (Right click to View Source) | ZIP

  • Flash Player 9 Beta for Linux & Windows Vista

    Figured I’d join in on the MXNA pounding as well as do my part to spread the good cheer to the wider world. Adobe has released a Flash Player 9 beta build for Linux and Windows Vista (use Vista, meet the chick in the field) on the Adobe Labs which you can download now.

    For you nix heads:

    • Mike talks about the potential Linux distribution
    • Matt Chotin touches on debugging
    • Tinic Uro gives a lot of up to date background on his feelings towards the good and bad like device fonts, Xembed, peformance, and 64bit plans
    • Emmy Huang has a rundown on more technical info and known issues
    • Info on using Flex 2 on Linux with an Linux additions in the FAQ

    It also includes the new fullscreen option for Windows and Mac if you haven’t tested that out yet.

    If you are bored, go download and test on existing content. Remember, next to ubiquity, Flash Player’s 2nd hottest feature is backwards compatibility. Go make sure she still works on YouTube, Google Video, Yahoo Maps, Albino Black Sheep, Newgrounds, and any other SWF applications you can think of. Any issues, shoot ’em here.

  • Red5 Hosting w/ Server-Side JavaScript !?

    …and Ruby, and Python, and Java. Chris Allen dropped a comment in a previous entry and got me all giddy!

    More info on Red5.

  • Graeme Harker on Marketing Flex to Developers

    I really liked this entry Graeme Harker wrote about marketing Flex to developers. I feel like I wasted the past year (2005) evangelizing Flex 1.5. Flex 2 is really gaining momentum, but still, it’s not the explosion a lot of us were expecting. I think if Adobe takes heed of some of what Graeme says, that should help with some much deserved inroads. Adobe has worked hard on Flex 2 and I think if a lot of the demographics Graeme talks about see her in action, they’ll agree and dive in.