Currently Reading

Image of Derivatives Demystified: A Step-by-Step Guide to Forwards, Futures, Swaps and Options (The Wiley Finance Series)

Image of Working Effectively with Legacy Code (Robert C Martin)

Image of Coders at Work: Reflections on the Craft of Programming

Image of Succeeding with Agile: Software Development Using Scrum (Addison-Wesley Signature)

Recently Read

Image of Test Driven: TDD and Acceptance TDD for Java Developers

Image of iPhone Advanced Projects (Books for Professionals by Professionals)

Image of Cloud Atlas

Image of The Secrets of Consulting: A Guide to Giving and Getting Advice Successfully

Image of Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin)

Image of Advanced Actionscript 3 with Design Patterns

Image of Test Driven Development (The Addison-Wesley Signature Series)

Image of ActionScript 3.0 Design Patterns: Object Oriented Programming Techniques (Adobe Developer Library)

Image of UML 2 for Dummies

Image of Beginning iPhone 3 Development: Exploring the iPhone SDK


July 8, 2009

Mixin’s in ActionScript 3

Filed under: ActionScript, Flex — Anthony @ 11:48 pm

I was strolling through the UIComponent source code earlier today when i cam across this line of code.

 
 //--------------------------------------------------------------------------
    //
    //  Class mixins
    //
    //--------------------------------------------------------------------------
 
    /**
     *  @private
     *  Placeholder for mixin by UIComponentAccImpl.
     */
mx_internal static var createAccessibilityImplementation:Function;
 

I wasn't entirely sure what a mixin was but after reading up on wikipedia I realized they are exactly what they sound like basically just a mix of code bases. There is a really good post over on the yahoo flash blog about accessibility and the way in which Flex uses the

 
[AccessibilityClass(implementation="mx.accessibility.UIComponentAccImpl")]
 

meta data to mixin the Accessibility code into the UIComponent implementation.

No Comments »

No comments yet.

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .