* added remark about gradients
[swftools.git] / doc / fileformat.sc
index 779fa68..c6104d0 100644 (file)
@@ -1,6 +1,6 @@
 # ==================================================================================
 #
-# File format specification (well, sort of)
+# swfc(1) File format specification (well, sort of)
 # Version: 0.1
 #
 # ==================================================================================
 
 .texture text1=background scale=50% rotate=45
 
+# define a gradient
+# -----------------
+
+#.gradient mygradient:
+#    0.000 0 0 0
+#    0.500 255 255 255
+#    1.000 0 0 0
+#.end
+
 # load several pages:
 # -------------------
 
 
 .end
 
+# fonts.sc
+#
+# fonts&text
+
 .swf name="fonts.swf"
     .font courier "Courier.swf"
     .font helvetica "Helvetica.swf"
     .change t9 alpha=0% shear=-0
 .end
 
+# sound.sc
+#
+# Sound effects
+
+.swf name="sound.swf" fps=25
+.sound loco "LocoStart.wav"
+.sound whistle "Whistle.wav"
+
+.frame 0
+    .play loco
+.frame 25
+    .stop loco
+    .play whistle loop=20
+.frame 200
+    .stop whistle
+.end
+