Trying to port a project from AS 2.0 to AS 3.0, and they've removed linkageIDs
and Object.registerClass, which is used heavily in this to modularize the
application and I'm somewhat lost trying to find a suitable replacment.
The project has multiple ui only swfs, and one script.swf shared among them,
and it's via Object.registerClass that they are bound together (lazy dynamic
binding). This is because the team is divided into purely designers/animators
who can't script mostly on Mac (e.g. specific fonts), and mostly coders who
can't be trusted with a designer toolkit.
In AS3.0 I understand that we can use
ApplicationDomain.getDefinition("Circle")[1]; which will return a class that
represents an item in the library swf, but then it's still a movieclip unless
the movie is compiled with all the script, thus would either have to have a
Mixin type or be composed into another class in order to be turned into another
class. Both of these seem messy, and there is no way to know when they are put
onto stage, if the components are laid out in the IDE, as Object.registerClass
does automatically.
Any ideas?
[1] demonstration of modularizing swfs in As3.0
http://iteratif.free.fr/blog/index.php?2006/07/11/44-bibliotheque-partagee-sous-flash-9
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com