1 to: 3 do: [
:i | frameCounter := i printString. frameCount := frameCounter padded: #left to: 3 with: $0.
frame32Bitmap := Form fromFileNamed: 'frame_' , frameCount , '.bmp'.
frame32Bitmap displayOn: animationFrame at: 0@0. "Convert down to 16 bits"
animationFrame display; writeOnMovie: movieFile].
I stole it directly from the current Recipe (on the Squeak wiki) for creating a Squeak movie. It runs and creates the buddies.movie file from my bmp frame images. But I can't figure out how to load the .movie file into the MovieMorph.
Does anyone know the way to do this? Or do I have to load each frame manually? I suspect the clue is in the Form>>writeOnMovie: method but haven't had any luck figuring it out. I know I have to load in the bits of the bitmap somehow ...
I was expecting to be able to write something like this (I know, loadMovie: doesn't exist - it just seems like what one would expect to see):
m := MovieMorph new.
m loadMovie: (FileStream fileNamed: 'buddies.movie').