1 Reply Latest reply on Oct 5, 2009 10:36 AM by Joe ... Ward

    Dynamic event

    Zolotoj Level 3

      The following works fine in Flex but does not in AIR version:

       

      -- application

      ...

      addEventListener("showLabel", showLabel, false, 0, true);

      private function showLabel(event:DynamicEvent):void

      {

          trace(1);

      }

      ....

       

      <mx:FormItem>

      <local:lookupSKU id="sku">

      </local:lookupSKU>

      </mx:FormItem>

       

       

      -- lookupSKU

      ...

      var dynEvent:DynamicEvent = new DynamicEvent("showLabel", true);

      dispatchEvent(dynEvent);

       

      No Dynamic event is fired in the AIR application. Why is that?

       

      Thanks