Blog

  • I’ve had it with Key.getCode

    So, I made a tool to help me out. It gives you the key code, key ascii, and the character hit without you having to code a quick swf to find it yourself like I’ve had to do 50 million times. Off to the left, called “<a href=”https://www.jessewarden.com/downloads/JXL%20Key%20Tool.mxp”>JXL Key Tool</a>”. A Flash panel.

    BTW, Anyone know how to size a Flash panel and/or access the top right drop down menu?

  • Function.call got shafted, yo

    Is it just me, or is Function.call like a “Licker” from Resident Evil 2 and Function.apply like the final beast?

    Seriously, Function.call is neat and all, but even though they advertise “…code that is concise and readable…” in the docs, to me, apply offers more concise code than call does. The only time I could think where I’d prefer to use call insead of apply is if I was creating arguments inside a function and didn’t have access to my arguments object to put them in.
    <code>
    function something(){
    var arg1 = “moo”;
    var arg2 = “wuzzup”;
    this.otherFunction.call(_level2, arg1, arg2);
    }
    </code>
    To me, there is no way to easily type in your arguments, unless you did:
    <code>
    this.otherFunction.apply(_level2, [arg1, arg2]);
    </code>
    Which certainly isn’t as readable. I still think <code>call</code> got shafted, though.

  • In The Weeds & CSS Clay

    … yeah yeah, skip intro …

  • Don’t Do _root Drugs

    Came back from my trip to find that one of my collegues was given a gift of good news. Since I’m a loser, I wandered about government sites until finding my way to MM’s homepage. Won’t their referrer’s be whacked now. Anyway, saw a download link for what I thought was Central, but was really Contribute. Ignoring that as a sign to go to bed, I ventured over to the Central App Dev Center to lament some more. Found an <a href=”http://www.macromedia.com/devnet/central/articles/how_it_works.html”>article</a> describing how Central will work. I liked how he said not to use _root. Pretty neat to know that your app is loaded into a _level. Helps you start thinking on how your app will work with the rest of the crew of apps it’ll be sitting next to.