开发者

Options for configuring element hierarchy relationships in the Flash IDE

开发者 https://www.devze.com 2023-03-22 19:53 出处:网络
The ultimate goal is to use JSFL to export a 2D skeleton from Flash. The file will likely consist of one or more Movie Clips which animate some Graphic symbols. I can happily export the child symbols

The ultimate goal is to use JSFL to export a 2D skeleton from Flash. The file will likely consist of one or more Movie Clips which animate some Graphic symbols. I can happily export the child symbols as PNGs and also access the keyframe and tween data. The problem is that I'm not sure how the script can know that the Leg is attached to the Body etc.

This is what I've thought of so far:

[IK/Bones] As far as I can tell, there is unfortunately no API for accessing the IK / Bone features

[Symbol Hierarchy] I don't want to go down the route of grouping all children in a symbol hierarchy as I suspect this will make life hell for my designers.

[Custom Properties] I'm not aware of any easy way to assign custom properti开发者_如何学Ces (ID and ParentID) to the graphic library items.

[Flex] A Flex tool panel may be an option, but this seems like overkill and I'm not sure where to start with that.

[Layers] Placing all child layers in a Layer folder right after the parent. This may be my best option as I can get this information in JSFL, but it also seems like a nasty hack.

I'm interested in any thoughts people have on this problem. Thanks.


What are you trying to achieve here? I'm not quite certain which advice to give you...

If you "just" want to export animation, you could take a look at this: http://prototyprally.com/introducing-the-grapefrukt-asset-exporter/

[Custom Properties] Yes you can add data to things in the flash IDE. The Docuemnt, Element and Item object all has methods for adding/getting data.


I'm not sure if this answer is still relevant as almost an entire year has passed, but I did it by parsing the DOMDocument.xml file generated by saving a flash file in the XFL format. You can get the armature data from there with a lot of knowledge of the XFL format. If you run into any problems, I can probably provide some guidance.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号