Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Re: EventDispatcher 1 frame delay

Re: EventDispatcher 1 frame delay

2004-02-17       - By Ahmet Zorlu

 Back
Reply:     1     2  

afaik, you may use setInterval as an alternative to *doLater* function used in UIComponent class.

<code >
import mx.events.EventDispatcher;

class BasicClass extends MovieClip
{
   private static var _eventInit = EventDispatcher.initialize(BasicClass.prototype);
   var addEventListener:Function;
   var removeEventListener:Function;
   var dispatchEvent:Function;
   private var _interval;

   function BasicClass()
   {
      init();
   }
   
   private function init()
   {
      _interval = setInterval(this, "_dispatchInitEvent ", 0);
   }
   
   private function _dispatchInitEvent()
   {
      dispatchEvent({type: "init "});
      clearInterval(_interval);
   }
}
</code >

// A.Zorlu
// Web developer

--
__ ____ ____ ____ ____ ____ ____ ____ ____ ___
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze

=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104451
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)