Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7768653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:58:05+00:00 2026-06-01T15:58:05+00:00

Abstract What I require is a technique, given a single, but layered Flash animation,

  • 0

Abstract

What I require is a technique, given a single, but layered Flash animation, to export the position and rotation of each key movie clip in every frame as XML.

Code to read in this information into a cocos2d-ready format would save a lot of time but isn’t necessary as I know how to achieve this.

Our artists often draw vector using Flash and have wonderful and impressive animations. Our technique in the past to put this art into our games is to export the separate animations as a sequence of pngs, stick them in a sprite sheet, and turn them into CCAnimations.

This technique works well and we can get quite a lot of art into the 20MB over the air download limit thanks to spritesheets and pvrtc. As we grow, however, we are looking to make bigger and better games, and this would mean more art!

What I’d like to achieve now is a mass reduction in the amount of art by using a keyframing technique to mimic Flash behaviour, removing duplicate pieces of art.

i.e. Using the current technique, one character would take:

A walk sequence with 10 frames (say 100 * 300 resolution, 30k pixels) would have
10, full sized humans in each stance. (for a total of 1000 * 300
resolution, 300k pixels for one animation)

Say 5 similar animations for a total of 1.5 million pixels

The desired outcome for the same character:

1 right leg: (40 * 30, 1200 pixels)

1 left leg: (40 * 30, 1200 pixels)

1 torso (50 * 50, 2500 pixels)

1 left arm (40 * 30, 1200 pixels)

1 right arm (40 * 30, 1200 pixels)

1 head (30 * 30, 900 pixels)

Total (8200 pixels) for all animations

And an xml file to explain the transform of each part for each frame.

My knowledge of Flash is limited. I have exported a LOT of art, so that’s not a problem, but I don’t have much experience in Actionscript or in exporting other information. I have noticed the Export Motion as XML option but it doesn’t provide the information I need (It doesn’t traverse to the children of movie clips to get their transform).

The Objective-c side of things is less of a problem, I know how to parse XML, though if somebody has already written this too, I’d be very grateful if you’d like to share.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:58:07+00:00Added an answer on June 1, 2026 at 3:58 pm

    I never did find out about any existing tools and so ended up learning a bit of ActionScript and writing the solution myself.

    Unfortunately due to corporate policies I won’t be able to share my code but I will outline the steps I needed to take


    ActionScript / Flash

    • Step through each frame
    • Get the children on the stage on that frame and note their transform
    • Go through each of their children and note their transform with relation to their parent
    • Do this recursively until the children have no children or you have reached a DrawingObject
    • Save the information as XML

    Art

    • Export each symbol you need from the library and add to a sprite sheet. (I did this using JSFL)

    Obj-C / Cocos2d

    • The XML should contain a set of frames with a list of children for each frame and, recursively, each of their children. Each child node contains transform information.
    • Read in this XML, adding children to frames of an animation as you find them and children to their respective parents. Apply children’s transforms.

    Hope this helps somebody else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to require that a class have a particular abstract member?
public abstract class MyAbs implements Comparable<MyAbs> This would work but then I would be
I have a bunch of classes extending an abstract Base class. Each subclass takes
An abstract class can be inherited by another class, and require people to override
I realize this is fairly abstract, but I'd like to do something not unlike
I would like to require classes that extend my abstract class A to provide
<?php require_once 'abstract.php'; class Mage_Shell_Snapshot extends Mage_Shell_Abstract { public function _snapshot() { if(!Mage::isInstalled()) {
I add this class to library/My/Validate/PasswordConfirmation.php <?php require_once 'Zend/Validate/Abstract.php'; class My_Validate_PasswordConfirmation extends Zend_Validate_Abstract {
Abstract: Can you propose a mathematical-ish algorithm over a plane of pixels that will
abstract class base { abstract public function test(); public function run() { self::test(); }

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.