O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  

Composition Compiler Hack
To implement Composition for an non-movieclip object to get around the Flash MX 2004 compiler yelling at you.

Contributed by:
Jester XL
[01/14/04 | Discuss (0) | Link to this hack]

Doing: my_lv = new LoadVars(); my_lv.owner = this; Will throw an error on the owner part as LoadVar's does not have an owner property inherient in its class. Therefore, your technically supposed to write a wrapper class so you can pass a scope parameter in. Thats dumb as hell and should of been implemented internally. Therefore, you can do: my_lv["owner"] = this; And it accomplishes the same thing, except, the compiler doesn't get mad.

O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.