Flash Target: Passing args to @:file

How do I give @:file metadata access to variables from other classes? I’m trying to load XML scripts for the flash target of my game, and this is the only way I’ve found so far that lets me load them in, so other flash-supported alternatives are appreciated.


The following works:
class MyXMLData extends ByteArray { }

The following does not work:
class MyXMLData extends ByteArray { }

I’ve thought about making a class constructor to solve this problem, but I’m not sure how to construct metadata.

I managed to find a solution that I’m currently figuring out. Thanks.