How to create and to work with custom metadata in ActionScript3/Flex?
相关问题
- garbage collection best practices
- Should I wait for Flash Player 10.1 or go with Fla
- How to load flex swf from flash?
- I want to read exif info in image in android. I ca
- Is it possible to use the TestCafe .meta object to
相关文章
- How do I append metadata to an image in Matlab?
- What file sytems support Java UserDefinedFileAttri
- Are there any benefits when using final in AS3?
- Trace on Chrome/Browser console
- as3 ByteArray to Hex (binary hex representation)
- getElementById not working in Google Chrome extens
- Libraries for text animation in Flex / Actionscrip
- About Collision detection alghorithms in AS3
To create metadata, just use square bracket syntax in your class definition:
Call
describeType(ClassWithMetadata)
to get xml description of your class. Metadata will be there, you can parse it and process as you like.To prevent compiler from stripping your metadata, add compiler argument
-keep-as3-metadata Attribute
for each attribute name you using. This can be done in library settings or in each project that uses metadata.There is two general directions to deal with metadata in ActionScript in Flex: