3 Replies Latest reply on Nov 23, 2010 9:37 AM by Lee Burrows

    DynamicEvent

    Zolotoj Level 3

      Should a user click be involved in order to dispatch a dynamic event?

      Another words will the following work in any place of the code without user interaction:

       

      var de:DynamicEvent = new DynamicEvent("Hello", true);

      dispatchEvent(de);

       

      // somewhere in the outer container:

      addEventListener("Hello", onHello);

       

      private function onHello(event:DynamicEvent):void

      {

           //

      }