Saturday, November 8, 2014

Test Object for static method AS3

var obj:Object = new DecalMetaDatumLE();
            var str:String = getQualifiedClassName( obj );
             var def:Class  = getDefinitionByName(str) as Class;
           
            if (def["toJSONText"] != null)
            {
                trace("call it!");
            }


Still not sure how to list off all the static methods of a class.
But this is all I need for now. The ability to check for an object having a static method.
Making an advanced JSONEncoder where all complex data types can specify a
"toJSONText" and "fromJSONText" public static method that my JSONEncoder and JSONDecoder
will look for to better serialize complex objects.

Thursday, September 25, 2014

Adobe Flash Player 10.0 r2 has stopped working


I had to painstakingly trace through all my code until I found where the crash was happening.
The offending line?

trace(this);

I've been noticing that I get weird hard to find bugs every time I target a different version of flash.
Which now makes me know why I have testers who are reporting weird crashes that I cannot replicate.

-MakeGamesHappen
(-John Mark)