Blog

  • MediaDisplay’s onUnload of Doom

    The MediaDisplay component has an onUnload event to ensure the FLV or MP3 it’s playing is closed before the component goes away. If you, however, attempt to create a movie clip/component with the same name in the same frame (or maybe it’s depth), it won’t work. You must wait a frame because the onUnload keeps a reference to the clip and stays around until the next frame. This caused havoc in a speech preso I was doing for school. I implemented a quick and dirty doLater to ensure I had no issues.

    function doLater(obj, meth:Function):Void
    {
            if(post_mc == null)
            {
                    createEmptyMovieClip("post_mc", getNextHighestDepth());
            }
            var d:Number = post_mc.getNextHighestDepth();
            var ref_mc:MovieClip = post_mc.createEmptyMovieClip("d" + d, d);
            ref_mc.obj = obj;
            ref_mc.meth = meth;
            ref_mc.onEnterFrame = function()
            {
                    trace("ref_mc calling");
                    this.meth.call(this.obj);
                    this.removeMovieClip();
            };
    }
    
  • Indeo 5 and Flash Video Importing

    Dude, Indeo 5 blows when importing videos. I kept creating small import clips in the import wizard, but the video was waaaay off sync… if at all. It didn’t even import all of the clips.

    I’m now attempting to learn the Media Display component at moch-10 billion since addQuePoint seems the way to go at this point with a honkin’ 9meg, 12 minute external FLV. It’s going to be weird animating movie clips, and then attaching them via an event listener vs. the old skool way to merely animating things in the timeline.

    On a brighter note, the weather here rocks, and I’m reminded of it after just getting back a roll of film developed and looking through the pictures. Her majesty had photographed the ice storm and man… do I NOT miss that cold weather crud; the warm, sunny weather here at Bondi Beach rocks! It’s been a battle getting me out doors, though, as I have so much stuff to code & homework to do before the conference. Not to mention her majesty’s on reckon finding a hotel for Tuesday night… hope that goes well.

    Saw Aral on the way here out in the middle of the Pacific. Hard to spot 40,000 feet up, but man, he look tired… poor bloke.

  • Made it to Sydney

    Made it into Sydney, Australia last night at about 10:30pm. Coding this morning until I find an outlet converter, we checkout, or this laptop battery dies… whichever comes first. We check out of this airport hotel at 11am, and catch a bus to catch a bus to Bondi Beach where our hotel #2 of 5 is. I think I’ve adjusted significantly quicker to the time change compared to 2 years ago… it just took 3 days of little to no sleep to prepare.

    Anyway, LOT’s of work to do before MXDU. No rest for the weary. WOOSHAA!!!