Blog

  • Zinc & Debugging Permitted

    My Zinc commands don’t work if I have Debugging Permitted checked for my FLA. As soon as I uncheck that, it works fine.

    :: goes to look at docs ::

    Nope, can’t find it. Basically, my mdminit() command as well as my mdm.prompt(“MDM Loaded”) do squat when Debugging Permitted is checked. That was a fun frikin’ hour.

    :: goes to look at forum ::

    Yep, 2 frikin’ threads. There should be a high-level page added to the docs:

    – call mdminit();
    – make sure Debugging Permitted is not checked for your FLA

    …BACK TO WORK…

  • Game Day Live

    Done testing out my new capture card; using it to capture input, and then broadcast via Flashcom. Thanks for watching (if you made it)!

    Game Over

  • InnKeeper Class

    I read FlashApe’s blog entry a little too quick… I thought it said “InnKeeper” and was like, “Wow! A D&D Flash post NOT by me!!!”

    …but it was IntKeeper.

    Pissed, I wrote this class to satiate my delusion. You can check an object in and out of rooms if any are available.

    class InnKeeper extends Object
    {
            
            static private var rooms_obj:Object = {};
            
            static var private SUITE:Number = 0;
            static var private NOBLE:Number = 1;
            static var private LUXURY:Number = 2;
            static var private COMMON:Number = 3;
            
            function InnKeeper()
            {
            }
            
            static public function getARoom(tennant:Object):Boolean
            {
                    if(InnKeeper.isRoomAvailable() == false)
                    {
                            return false;
                    }
                    else
                    {
                            var bestRoom:Number = InnKeeper.getBestRoom();
                            if(bestRoom == -1)
                            {
                                    // nice try hacker...
                                    return false;
                            }
                            InnKeeper.rooms_obj[bestRoom] = tennant;
                            return true;
                    }
            }
            
            static public function checkOut(obj:Object):Boolean
            {
                    for(var p in InnKeeper.rooms_obj)
                    {
                            if(InnKeeper.rooms_obj[p] == obj)
                            {
                                    InnKeeper.rooms_obj[p] == null;
                                    return true;
                            }
                    }
                    return false;
            }
            
            static public function isRoomAvailable():Boolean
            {
                    if(InnKeeper.rooms_obj[InnKeeper.SUITE] != null)
                    {
                            if(InnKeeper.rooms_obj[InnKeeper.NOBLE] != null)
                            {
                                    if(InnKeeper.rooms_obj[InnKeeper.LUXURY] != null)
                                    {
                                            if(InnKeeper.rooms_obj[InnKeeper.COMMON] != null)
                                            {
                                                    return false;
                                            }
                                            else
                                            {
                                                    return true;
                                            }
                                    }
                                    else
                                    {
                                            return true;
                                    }
                            }
                            else
                            {
                                    return true;
                            }
                    }
                    else
                    {
                            return true;
                    }
            }
            
            static private function getBestRoom():Number
            {
                    if(InnKeeper.rooms_obj[InnKeeper.SUITE] != null)
                    {
                            if(InnKeeper.rooms_obj[InnKeeper.NOBLE] != null)
                            {
                                    if(InnKeeper.rooms_obj[InnKeeper.LUXURY] != null)
                                    {
                                            if(InnKeeper.rooms_obj[InnKeeper.COMMON] != null)
                                            {
                                                    return -1;
                                            }
                                            else
                                            {
                                                    return InnKeeper.COMMON;
                                            }
                                    }
                                    else
                                    {
                                            return InnKeeper.LUXURY;
                                    }
                            }
                            else
                            {
                                    return InnKeeper.NOBLE;
                            }
                    }
                    else
                    {
                            return InnKeeper.SUITE;
                    }
            }
    }
    
  • Flashcom World Peas

    A lot of people will question why someone likes a technology so. Typically, if you find out the person’s interest(s), learn about the technology, you can typically connect the dots.

    I don’t like Flashcom because it’s better than XMLSocket (for some projects to prevent argument), I like Flashcom because of emails like this sent to the Flashcom list. To give context, the release of the Programming Flash Communication Server book, has generated insane excitement in that community, causing a host of “news” broadcasts and interviews done & hosted by Bill Sanders using Flashcom. Interviews have been done with Peldi from Macromedia, and Brian Lesser, one of the authors, and a highly respected Flashcomer. Many people from around the world have tuned into the broadcasts.

    This, to me, is why Flashcom is cool.

    “Here’s the final country list:
    Japan
    Canada
    India
    Italy
    Nigeria
    Peru
    Portugal
    United Kingdom
    US

    Continents:
    Africa
    Asia
    Europe
    North America
    South America

    An application that combines all these countries and continents has to have something going for it.

    Cheers,
    Bill”

    * Update: Add Israel, Argentine, South Africa to the list!