PDA

View Full Version : keyframes, thousands of images, automation problem...


nakedkafka
11-22-2005, 10:10 AM
Dear Developers,
I am halfway into coding a mini-2d engine in flash, using a movie clip that holds around 430 images, every image in a seperate frame. The images are slices of a larger image, as in a grid.
I was wondering if there is any way to place each image into a seperate keyframe dynamically ? Perhaps the question is can you create a keyframe dynamically ? in the library all the images are in sequential order, as far as i can see I can place all of them into the stage, but I can't see any way that i can drop them into seperate keyframe without manually going throught them one by one.
any help would be greatly appreciated, my fingers are going throught 430 images at the moment, I bet there is a better way.
peace

spy
11-23-2005, 02:18 PM
yep you can... this is the syntax:
timeline.convertToKeyframes([startFrameIndex [, endFrameIndex]])

nakedkafka
11-23-2005, 03:21 PM
WOW,
thanks for that, I will have to create a small movie to test that out.
That actually means that I don't even need to have anything on the stage and all can be loaded and created dynamically. Thanks alot for that, Flash with the notion of OO Modeled in is an Amazing tool.
Thanks again,