X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=doc%2Fswfc.xml;h=5d564094dc10e3fe2e652388d5ca582875a8eeb5;hb=04d6d962a589c2340dfc338de749d8fdfe266e85;hp=c5b0ca86c461105e43e6bb32179e69bddd49fe43;hpb=e34684d2811b9042f534c2cfad32c9256df574a4;p=swftools.git diff --git a/doc/swfc.xml b/doc/swfc.xml index c5b0ca8..5d56409 100644 --- a/doc/swfc.xml +++ b/doc/swfc.xml @@ -113,13 +113,46 @@ Boxes: .end +
The
+ Change, on the other hand, modifies an already existing object.
+ It works gradually: In the example above, the change happens over 100 frames.
+ If you want to change an object suddently from one frame to the next, you
+ would use the
+You can define a number of parameters in the
+Each one of these consists of two parts: The multiplicator and the shift.
+The syntax is
+
+You can also specify negative values for both
+The following example demonstrates a few of the possible transforms: +
+ +
.flash name="cxform.swf" version=5
@@ -142,7 +175,11 @@ Boxes:
.change s1 x=105 y=105 scalex=0 scaley=0 luminance=0 #fadeout
.end
-
+
+A very useful fact is also that you can color transform the alpha component.
+So to fade any object into the background, you would simply transform it's
+alpha color: E.g. So much for the basics. Now let's go to the more advanced -functionality. +functionality around fonts.
@@ -217,8 +260,8 @@ objects which you can use in other commands.
.flash name="fontoutline.swf"
.font Arial "Arial.swf"
- .textshape helloworld font=Arial text="Hello World"
- .filled filled_helloworld outline=helloworld fill=blue line=5 color=green
+ .textshape helloworld font=Arial size=200% text="Hello World"
+ .filled filled_helloworld outline=helloworld fill=blue line=3 color=green
.put filled_helloworld
.end
@@ -245,6 +288,19 @@ of a plain color:
.end
+While at it, you can also fill with an image:
+
+
+.flash name="fontimage.swf"
+ .font courier "Courier.swf"
+ .jpeg beach "beach.jpg"
+ .textshape text font=courier text="HOLIDAY"
+
+ .filled filled_text outline=text fill=beach line=1 color=#2c2c2c
+ .put filled_text scale=200%
+.end
+
+
But let's get back to normal
+The last two examples look similar, but their underlying structure +is different: The first is a shape object filled with +image data (that is, a texture), while the second uses a normal +text object to clip an rectangular image. +
+ +
Also,
.flash name="text6.swf"
@@ -288,6 +353,26 @@ which is used here together with the alpha parameter of .change :
+.flash name="edittext.swf" bbox=210x110
+ .font Arial "Arial.swf"
+ .edittext myedittext font=Arial size=20%
+ width=200 height=100
+ color=blue border multiline wordwrap
+ text="Edit me!\nClick with your mouse on this text to edit it."
+ .put myedittext x=3 y=3
+.end
+
+
+