Add some documenation notes, and remove some traces
[potlatch2.git] / net / systemeD / halcyon / styleparser / Eval.as
index 4101ab7922493a867977e2bce85713e5b35724b3..c8c1095c06db4e017fd9661714a89a956138d420 100644 (file)
@@ -28,7 +28,7 @@ package net.systemeD.halcyon.styleparser {
                        var compiled:CompiledExpression=parser.parse();
                        var swfdata:ByteArray=compiled.compile();
 
-                       this.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
+                       this.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded, false, 0, true);
                        this.loadBytes(swfdata, new LoaderContext(false, new ApplicationDomain(ApplicationDomain.currentDomain)));
                }
                
@@ -39,6 +39,7 @@ package net.systemeD.halcyon.styleparser {
                }
                
                public function exec(tags:Object):* {
+                       if (!swfclass) { return null; }
                        var cp:Object=new swfclass();
                        for (var k:String in tags) { cp[k]=tags[k]; }
                        return cp.execute();