Is the as version of abcdump in the tamarind open source?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Friday, November 09, 2007 2:31 PM
To: [email protected]
Subject: RE: [flexcoders] classes in packages

 

> is it even possible to parse SWF in AS3 given that SWF is compressed
format and not byte aligned?

 

Yes, it's possible. You can use the uncompress() method of the ByteArray
class to uncompress the compressed part. You don't have to write a
decompressor, but you do have to write a bit-by-bit reader.

 

- Gordon

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Samuel R. Neff
Sent: Friday, November 09, 2007 2:24 PM
To: [email protected]
Subject: RE: [flexcoders] classes in packages

 

This is a very important missing piece in the reflection API.  :(

 

Another workaround option is to use a build script to pre-process the AS
files and provide a list of classes as an array of strings or something.
Much easier than parsing the SWF (is it even possible to parse SWF in
AS3 given that SWF is compressed format and not byte aligned?)

 

Sam

-------------------------------------------
We're Hiring! Seeking a passionate developer to join our team building
Flex based products. Position is in the Washington D.C. metro area. If
interested contact [EMAIL PROTECTED]
  

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Friday, November 09, 2007 4:39 PM
To: [email protected]
Subject: RE: [flexcoders] classes in packages

> Is there a way to get all the classes that may exist in a package?

 

Programmatically, at runtime? No, because there are no runtime objects
representing packages, nor a programmatically accessible list of all
classes in a SWF.

 

Instead, you would have to load your own SWF as a ByteArray, parse its
ABC blocks to find the fully-qualified names of all the classes inside
(such as mx.core.UIComponent, mx.controls.Button, etc.) and from those
names determine which classes were in which packages.

 

- Gordon

 

Reply via email to