Blog

  • Cell Renderer Example

    Ok, since this was a pain to make complicated and I got it working simply, I figured I’d share so you only have to go through pain doing more than I did. …not that I want you to go through pain, but it certainly makes the pleasure more worth it. At any rate, check this sample. I made a custom cell renderer for the DataGrid so I could have it render HTML hyperlinks. I tried using the TextArea to no avail, but a TextField works just fine!

    Cell Renderer – <a href=”https://www.jessewarden.com/cell_renderer/”>HTML</a> | <a href=”https://www.jessewarden.com/downloads/cell_renderer.zip”>ZIP</a>

    Update: Jared, you may be able to use getCellIndex to get the itemIndex, and if it’s odd or even, change the display of the renderer to an alternate color. Hope that helps!

  • CellRenderer API: Need the interface?

    Not sure if I’m doing this right, or if the interface is already in the framework, but here’s what I garnered from trying to make a cell renderer for the DataGrid:

    <code>interface CellRenderer
    {
    // Returns the preferred height of a cell
    function getPreferredHeight(Void):Number;

    // Returns the preferred width of a cell
    function getPreferredWidth(Void):Number;

    // Sets the width and height of a cell
    function setSize(width:Number, height:Number):Void;

    // Sets the content to be displayed in the cell
    function setValue(suggested, item, selected:Boolean):Void;
    }</code>

    I think if you throw that in an as file, and then #include it, you can then do:
    <code>class YourClass implements CellRenderer{}</code>

    At any rate, I’m using it that way, and if it breaks, or doesn’t compile, I’ll let you all know.

  • SE|PY ActionScript Editor

    Aw, dude, this thing is sweet! It’s like <a href=”http://www.bomberstudios.com/sciteflash/”>SciteFlash</a>, but has a few cool features. You can see the functions of your classes and other objects in this tree view, compile straight from it (tells Flash, “Test movie, mofo!”), has the Flash XML reference built right in, and even seems to support a lot of AS2 syntax as well! I haven’t read the site nor the docs so I’m aware I’m probably missing a lot, but I’m hooked without reading it, so check it out!

    <a href=”http://www.sephiroth.it/python/sepy.php”>http://www.sephiroth.it/python/sepy.php</a>

  • AOL AND ICQ SDK FOR MM Central

    Dude, it’d be so nice if someone wrote their own ICQ front-end in Central. That program had wayyyyyyy too many features and buttons from when I started using it. If you compare it to AIM, it’s just one of those apps where a talented bunch of people had free reign on adding functionality. I mean, was there anything ICQ couldn’t do?

    <a href=”http://rss.com.com/2100-1032_3-5109001.html?part=rss&tag=feed&subj=news”>Article by <strike>Kevin Lynch</strike> Jim Hu</a> via <a href=”http://voisen.org/archives/flash_mx/000355.php”>Sean</a>.