[osflash] Two way to Using a SWF as a DLL, Which better?

iiley iiley.chen at gmail.com
Fri Jan 13 03:37:45 EST 2006


Hi,

Today i did some research of "Using a SWF as a DLL", follow the way
introduced from "http://www.osflash.org/using_a_swf_as_a_dll?s=dll", first
thanks Aral Balkan and Clément Arnoux's introducion, it's very clear.

But, after i did some research, i found that you can't extending a class
which will be loaded.  I first tested "exclude.xml" way(only tested with
MTASC's -exclude). Well, because it is not initialized when the sub classes
initializing, i can imagine it is logical. Then i prefer intrinsic class can
handle this, you know you can extending Array class(it's an intrinsic class
in std), but with my test, my custom intrinsic class failed. Well, i guess
maybe flashplayer can load Array class and other std classes first, so it
can be extended.

Then, question is:
1. Can we make DLL classes can be extended by a cool and automatical way,
maybe we can write a reflection util to do it? i'v thought it but have no
idea now.
2. Is the difference between the intrinsic class and exclude.xml methods
only the following: Instead of creating intrinsic classes for each class in
your library, you create a single exclude.xml file and name it
nameOfYourFLA_exclude.xml? I think if it is, then i'll never choose
"intrinsic classes" way, it has not any advantages than "exclude" way.

Thanks very much if we can discuss with this.

--
iiley
AsWing http://www.aswing.org
Blog http://spaces.msn.com/members/iiley/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20060113/0c733381/attachment.htm


More information about the osflash mailing list