资 源 简 介
Why Short?
While we all like AS3 for consistency, better performance and OOP, many of us hate it for its verbose nature. If you share this view, then you will find Short helpful in your day-to-day development tasks, be it an agency interactive or a complex application. Short attempts to reduce the verboseness of the language.
What it provides?
It provides few global objects and methods as shown below,
| Name | Purpose |
|:---------|:------------|
| _ | root of event handling simplification. once we set the target using _.to=myMovieClip syntax, we can use _.onClick instead of myMovieClip.addEventListener(...) to handle events. it is a global instance of com.luracast.Short |
| $(target) | alternative syntax for getting the short version of the target. Use $(myMovieClip).onClick=function(){}