Skip to main content
Known Participant
February 26, 2012
Question

Batch Bitmap conversion to Sprites?

  • February 26, 2012
  • 1 reply
  • 1069 views

I'm looking for a method or tool that allows me to make the follwing:

import several bitmaps(pngs that are frames of an animation) convert each of those bitmaps to a sprite, put each sprite into an array in order (spriteArray_name.push[bmpSprite]).  The array itself can be just exist as a static array in resource file. 

This isn't exactly a complex task, but I've got THOUSANDS of frames for different animations, and I really dont want to do this by hand.  I'm not an AIR programmer but, would that be a possible easy solution?  It just seems like there would be an easy way to Batch this process.

I'm currently using Flash Pro cs5.5 for the project.

Thanks ahead of time,

-dis

EDIT:

I am currently doing this at runtime, basically creating empty spites and drawing in the bmp data on the fly.  But, its not going to work. I need to do this precompile (or during compile if thats possible).

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 26, 2012

you can load your bitmaps at runtime etc.

Known Participant
February 26, 2012

No, I need this process done before runtime. I'm just looking for a method to script it, like one would script an action in photoshop. If that is not possible then a method to do it when the swf compiles

kglad
Community Expert
Community Expert
February 26, 2012

the only pre-runtime automation you can do with flash uses jsfl.