AS 3 Events Imports

In actionscript 3 you must define all your imports correctly or you will receive errors when you compile.  If you are new to AS3, imports are like your headers.  It is always a pain for me to look up the correct import.  So I decided to make a list of all the full imports path for the events. 

You could always take the short cut and do import flash.events.*;  I am not a big fan of this.  I think this is coincided lazy programming.  It is good practice to put the full extension for each import package. 

Events Imports List

  • import flash.events.ActivityEvent
  • import flash.events.AsyncErrorEvent
  • import flash.events.ContextMenuEvent
  • import flash.events.DataEvent
  • import flash.events.ErrorEvent
  • import flash.events.Event
  • import flash.events.EventDispatcher
  • import flash.events.EventPhase
  • import flash.events.FocusEvent
  • import flash.events.FullScreenEvent
  • import flash.events.HTTPStatusEvent
  • import flash.events.IMEEvent
  • import flash.events.IOErrorEvent
  • import flash.events.KeyboardEvent
  • import flash.events.MouseEvent
  • import flash.events.NetStatusEvent
  • import flash.events.ProgressEvent
  • import flash.events.SecurityErrorEvent
  • import flash.events.StatusEvent
  • import flash.events.SyncEvent
  • import flash.events.TextEvent
  • import flash.events.TimerEvent

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Enter the above security code (required)

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.