Creating a Squeak movie header.

karl.ramberg at chello.se karl.ramberg at chello.se
Sun Dec 16 16:14:17 UTC 2001


I'v been playing around with a Holder(PasteUpMorph) and writing out it's
content, a collection of SketchMorphs, as a SqueakMovie. 

I found some code in the MoviePlayerMorph documentation:

|
	out _ FileStream newFileNamed: 'BalloonDrop10fps.movie'.
	out binary.
	ff _ Form extent: 320 at 240 depth: 16.
	#(22 320 240 16 27 100000) , (7 to: 32)
		do: [:i | out nextInt32Put: i].
	
But now I changed around the code to use variables for the frame number,

width and height but I get confused when I'm trying to  write the line
	
	#(22 320 240 16 27 100000) , (7 to: 32)  and replace with the
variables:
	
	#(22 x y 16 frames 100000) , (7 to: 32)

I just don't understand how I should do this

Anyone ?

Karl




More information about the Squeak-dev mailing list