[Laszlo-dev] adding entries to ConstructorMap table in swf9

Henry Minsky henry.minsky at gmail.com
Mon Jan 7 14:59:05 PST 2008


In our curent "ptw" class system, we use the class initialize method
to automatically add the tagname of LFC classes  to the
ConstructorMap.

Since we don't have a class initializer method now, I'm just putting
the code inline to add the entry in like this now


dynamic class LzNode {
  static var tagname = 'node';
  ConstructorMap[tagname] = LzNode;



dynamic class LzView extends LzNode {

    static var tagname = 'view';
    ConstructorMap[tagname] = LzView;


etc



-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com


More information about the Laszlo-dev mailing list