object-oriented as2 development

Posted on July 11, 2008 by chad.
Categories: as2.

needed to build a monumental video game app in as2.  have always used as2 on an as-needed basis, but decided this time to operate on it.  open it up. see how it works.  or doesn’t work. dragged as2 screaming into the year 2008. into the light.

the utility classes i found, modified, or extended are useful for anyone coming from an object-oriented background:

  • DocumentUtil allows you to specify a Document class (aka Main class). :: Ryan Taylor @ boostworthy.com
  • BezierTween creates beziers using little phrases that even Flash 7 can compile. :: Felix Turner @ airtightinteractive.com
  • MovieClipBubbler bubbles as2 MC events. it is not simpler to use than an Event Broadcaster.  it does have performance benefits over an Event Broadcaster. :: Ralf Bokelberg @ helpqlodhelp.com
  • Hitbox is an essential extension of MovieClipBubbler, at least in concept.  you should take my implementation and twist it to your ends.  using Hitbox avoids having to draw zero-alpha’d Hit areas on all your MovieClips.  in simplest execution, the MovieClip in your Library links to Hitbox (rt-click/Linkage/’Export for ActionScript’/Base Class).

editing page content without leaving the page

Posted on June 15, 2007 by chad.
Categories: UI.

we should have immediate user feedback working on our flash sites.  ely greenfield’s flex controls provide one means to the end.  his classes allow on-page field editing.