Blog

  • DataGrid + RecordSet = Awesome App

    Dude, wtf, I’ve been seeing this question on Flashcoders for 3 years now; it pops up at least once a month.

    “I’m putting 10 billion records in my DataGrid, and it’s slow. Any suggestions?”

    …no, just abashed questions actually:
    – why?
    – no… seriously, why? Why are you putting that much data into a DataGrid?
    – I’m not a DBA, but even I’ve heard of paging? Condescending? Dude, your the one coding RecordSets…
    – can the end user actually digest that much information?
    – why not present the information in a more digestable way. If you’ve ever been to cnn’s homepage, or the old NutScrape, information overload blows; if your building an app, the user is accomplishing a task. Help them, don’t throw a bunch of tools at them, put them in the right place and in the right order.
    – use an interval or an onEnterFrame (broken every 2 frames since doLater is used in a lot of places in the DataGrid to redraw the dataprovider changes, and it updates the frame after you’ve changed the model) to throw chunks in the grid, small pieces at a time, whilst showing a nice modal ProgressBar. Why not do that?

    Why do some people want to yuke MySQL into Flash DataGrids?

    I don’t get it. :: goes to try :: …well, it does feel kind of cool… naw, that can’t be it.

  • Class Path Max Size is 74 Characters, Symbol Name 64

    From my tests, Flash’ maximum class path size is 74 characters. The symbol name is 64. The symbol name (linkage ID) will popup an error, the class path does not.

    I’ve done some tests, and it seems that 74 is the max; 75, and Flash says it can’t find the class file (yes, FLA’s classpath is set, and so is Flash’ global class path).

    Searched in Help and Livedocs, nothing came up.

  • Flex Chronicles #11: Multiple Interfaces

    What a nice feature! Flex supports implementing multiple interfaces; thanks to Harris Reynolds for that gem. Check it (from the docs):

    You can implement multiple interfaces by separating them with commas as the following example shows:

    <local:YourComponent
    xmlns:local="yourclasspath.*"
    implements="com.yourpackage.IInterface, IDataProvider, Toggable" />

  • How to Disable Flash Cookies

    I’ve yet to see anyone directly link to the correct page, nor any succinct articles. So, here’s the quick and easy:

    1. Go here
    2. Click the “Always deny…” button