Blog

  • Scout Walker (AT-ST) Kama Sutra

    Via Johnny Bag o’ Doughnuts.

    It’s not Friday, but I’m off tomorrow, so…

    This is an online version of the book Kama Sutra, but for AT-ST’s (the 2 legged Imperial walkers in Star Wars). Some interesting pictures, reminiscent of Kermit the Frog and that bear whose various scenes of copulation, captured in SWF’s, were floating around the internet a couple of years ago. Anyway, the prose is off the wall, but the pictures are where the immediate comedy is.

    *** Not Work Safe ***

    Scout Walker Kama Sutra

  • asdf hyperlink in Flash goes to Microsoft Support Docs

    I can’t even think of a correct title. If you have a Flash hyperlink in an input text field that displays html with an href of “asdf” and a target of “”, and Firefox Preview Release 1.0 is your default browser, and you click the link, it’ll open the browser. The first tab will be blank. The second will go to a Microsoft Support Link, but it has a local path to your current working directory in the url field + “asdf” at the end.

  • Super Size Me

    Saw the documentary “Super Size Me” last night. It’s about this guy who eats McDonalds food, the entire menu, 3 meals a day which he has to finish, and has to get a super size if they ask, for 30 days straight. Effectively, living off of McDonalds, and only McDonalds, for a month with his vegan girlfriend stressing about it.

    The guy gained a considerable amount of weight in just 30 days, almost half the last week. It took him 14 total months to lose the weight he gained. God knows how bad his liver and kidneys were damaged through the whole process. He even suffered mild impotence because of restricted bloodflow. Aside from a myriad of other negative things, at parts it was just painful to watch, ecspecially when his new health problems became real and life threatening.

    My initial reaction was to never eat fast food again, at least McDonalds, but I was even having second thoughts about my bi-weekly Chik Fila excursions. The guys sources, in movie, are only half there, and he throws around mad statistics, but I have yet to hear a challenge to his claims, therefore, I’m taking it as sound info with questionable accountability for now.

    I really liked it and was really woken up to the nutrition problem this country faces in the form of obesity.

    All I have to say to non-US residents is see this movie, and keep our food franchises the f$)%* out of your country!

    Now, granted, to me Subway is a good one and is ok with moderation and responsible choosing of their menu. I, however, work out as a crutch for nutritional freedom, and even that is a stretch. I assume since I do strength training and cardio 3 days (sometimes 2) a week, that I can eat pretty much whatever I want. As I got more in tune with my body, I realized what made me feel bad, and what didn’t, so it got easier to tone down the blatantly horrible parts of my diet, mainly sodas. I merely switched to sugary, processed lemonaide though (not the Aussie kind, the Aussie-Pakistani kind), which has the same amount of sugar, or more, than sodas such as a Coke.

    Anyway, pretty crazy stuff in the flic. Real sobering, and another wonderful challenge I can’t wait (no really) to have when attempting to raise kids in the future with good habits. Parents have their work cut out for them. Heck, I still haven’t quit coffee, although, I’ve switched to tea midday so I’m making better progress than my cold turkey approach with ciggarettes. I don’t need ciggarettes, but I do need coffee.

  • Utilizing Focus in Custom Components

    Working on some side stuff Friday, and over the weekend, and had one hell of a time tackling focus in my custom components.

    First off, I use my own custom class as a layer between mx.core.UIComponent and my components classes. I do this because:
    – I like Grant Skinner’s GDispatcher better than EventDispatcher, although, I rarely utilize custom methods much, I still like the option to do so.
    – one thing not implemented into UIComponent was removal of the deadPreview movie clip like FUIComponent had back in MX; I implement this so I can include a dead preview in my components (since I rarely make an SWC’s for my own components), and I’d prefer to see something beyond a white dot to indicate what a movie clip is on the stage.
    – I “finished” the implementation of drawRect to have rounded edges. The drawRect method for UIComponent has radius documented as a property, but it wasn’t implemented.

    …however, after using this for …geez, maybe a year, I ran into a problem by overwrriting EventDispatcher’s addEventListener with my GDispatcher’s implementations. When a component gains focus, it fires onSetFocus, and when it loses focus, it fires onKillFocus. These functions inside of UIComponent add and remove listeners for key up and down. I didn’t know why my listeners weren’t getting fired until I realized I was overwriting the methods.

    After fixing that, it was pretty nice that a component already listens for it’s own events of keyUp and keyDown when it has focus.

    Secondly, I didn’t know until re-reading the class file for the umpteenth time, but you must implement pressFocus in your onPress function, and releaseFocus in your onRelease functions.

    Finally, the obvious of focusEnabled = true, tabEnabled = true, and tabChildren = false being set in your init. Additionally, the Halo rect (a green rectangle) won’t draw around your component correctly unless the width and height are validly set. I usually do a setSize as the last call in my init function with default sizes, and pass true in as the 3rd parameter to prevent an event from being generated.

    I haven’t figured out how to kill focus completely from everything yet, but these gotchas took a while to get used to.

    Oh yeah, and if you want to tab to components within a component, don’t forget:

    tabEnabled = false;
    tabChildren = true;
    

    It’d pretty nice, once you figure this stuff out, how much stuff is done for you. Hope this helps you all.

    If anyone finds out about killing focus, let me know.

    var f = getFocusManager();
    f.setFocus(null);
    

    …does NOT work, hehe.