Hi guys.. I have a question about the event dispatch. I am trying to write the code for youtube player and find the following link..
http://www.codingcolor.com/as3/as3-youtube-chromless-api/
He has many dispatchEvent call similar like this:
dispatchEvent(new YouTubeEvent(YouTubeEvent.ON_IOERROR,event));
For my understanding, custom event usually dispatch like below:
dispatchEvent(new Event(YouTubeEvent.ON_IOERROR));
I am not sure why he can add ,event
after On_IOERROR
. I appreciate if anyone would help me about this. Thanks.