Blog

  • Showing MovieClip’s Class via Jaysapee (JSAPI): Failed…

    Dude, I suck. I tried to take <a href=”http://www.ericd.net”>Eric D’s</a> idea (showing a MovieClip’s class name when you click on it) to fruition, but no dice…

    This code works via the command menu:
    <pre>var s = fl.getDocumentDOM().selection;
    if(s == null){
    fl.trace(“There is no FLA open.”);
    }else if(s.length == 0){
    fl.trace(“There is nothing selected.”);
    }else if(s.length > 1){
    fl.trace(“Code only shows class
    of one thing selected.”);
    }else{
    fl.trace(“Class is: ” +
    s[0].libraryItem.linkageClassName);
    }</pre>
    However, when I put a variant of it in a WindowSWF using MMExecute, no dice. If I had an event I could pass to the WindowSWF when something is selected on stage (instead of using onEnterFrame at 1fps, or using onMouseDown manually), or if I could hack the Properties Panel’s XUL… I could get it.

    Anyway, if anyone finds a way, Eric and I would be happy!

  • My Man E

    Added a new co-worker, the other Flash guy at my company. I don’t get to work with him much on projects, cause he’s on a totally other product we develop, but we still collaborate.

    He’s a very valuable blog because he’s definately very programmer’ish, but was using Flash way back from the beginning, so knows how to apply a lot of today’s programming concepts in Flash based on experience.

    <a href=”http://www.erikbianchi.com/”>Check him out</a>!

  • Scientific Breakthrough

    Via a co-worker.

    A scientist from Texas A&M University has invented an improved bra that keeps women’s breasts from jiggling and prevents the nipples from pushing through the fabric when cold weather sets in.

    At a news conference announcing the invention, the scientist was taken outside by a large group of very angry men, who promptly kicked the shit out of him.

  • AS1 to AS2 Growing Pain #1: Roll your own class vs. Object.prototype

    Two people in the past two days have had questions on the Flashnewbie list about how to do Object.prototype (MovieClip.prototype the most popular) equivalents in AS2. There are many people capable of finding this out on the list, but so far, we didn’t have an answer.

    Tried myself a few times, and failed pretty hard; it’s easy to do that in programming. Waded through the ASCII jungle that is Flashcoders currently, and found Tatsuo equisitely explaining how to do it amongst a bunch of non-AS1 programmers who didn’t belong in the thread. Yeah, their coding styles are correct, but AS1 people have no idea why your explaining to do it that way as and AS2 people have no idea why Object.prototype was so widly used; only comes from experience, so the disconnect just added confusion to my research. Confirmed by working through it with my co-worker two seperate times, and finally feel I’ve got a feel on how to explain it clearly.

    How you did it in AS1