X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=doc%2Fexamples%2Fboxes.sc;fp=doc%2Fexamples%2Fboxes.sc;h=ed1d88ad8af75da07d436367c8304f11faa1770a;hb=d5a70ae785b504b8bb82379150b6e339240d5513;hp=0000000000000000000000000000000000000000;hpb=a984e3f36f2998ebf05446d4c4cf3574c03e210d;p=swftools.git diff --git a/doc/examples/boxes.sc b/doc/examples/boxes.sc new file mode 100644 index 0000000..ed1d88a --- /dev/null +++ b/doc/examples/boxes.sc @@ -0,0 +1,24 @@ +# boxes.sc +# +# Do things with rectangles. + +.swf bbox=autocrop version=6 fps=50 name="boxes.swf" compress + + .box box1 width=100 height=100 color=red fill #filled red box + .box box2 width=100 height=100 color=white #white hollow frame + .box box3 width=100 height=100 color=green line=10 fill=blue #filled blue box, with thick green border + +.frame 0 + .put box1 x=30 scalex=30 + .put box2 x=30 scalex=30 + .put box3 x=30 scalex=30 +.frame 100 + .change box1 x+=300 scalex=100 + .change box2 y+=300 scalex=100 + .change box3 x+=300 y-=300 scalex=100 +.frame 150 + .del box1 + .del box2 + .del box3 +.end +