hey there,

I was trying to dispatch an Event in static function and I got an error
msg of "1180: Call to a possibly undefined method dispatchEvent."

There is no problem in normal function ( without static function ).

Would u pls show me how to address this problem?

Thank you so much

--------------- code ---------------

package com
{
     public final class MyClass
     {

         import flash.events.EventDispatcher;

         public function MyClass() extends EventDispatcher
         {
         }

         public static function checkLink():void
         {
             // My code is here, once it has finished then call the
onComplete() method to dispatch a new EVENT
         }

         private static function onComplete():void
         {
             var e:MyEvent = new MyEvent( MyEvent.COMPLETE );

             dispatchEvent( e );   // Display an error msg of  "1180:
Call to a possibly undefined method dispatchEvent."
         }
     }
}

Reply via email to