SWF Commands

From Swftools

SWFC Commands/Instruction set

The following are the custom instructions handled by SWFC. After each command is a list of all its arguments, their default values, if any, and a simple explanation of their meaning and usage where available. This information was taken directly from the SWFC source code. Please feel free to update any information that is incomplete, inaccurate or marked as unknown with "????"

Command Option Default Value Description
flash bbox autocrop Dimensions of "stage" (e.g. "640x480")
background black Background color of "stage"
version 6 Version of Flash
fps 50 Frames per second
name Assign name to flash
filename Name of .swf file to be generated
@compress default Whether to compress the final .swf file
@change-sets-all no ????
@export 1 ????
frame n 1 Frame number
name Assign name to frame
@cut no ????
@anchor no ????
swf name Assign name to swf
filename Name of an existing .swf file
shape name Assign name to shape
filename ????
jpeg name Assign name to jpeg
filename Name of .jpg file (e.g. "Scenery.jpg")
quality 80% Image quality (vs. compression rate) of jpeg
png name Assign name to png
filename Name of .png file (e.g. "Icon.png")
movie name Assign name to movie
filename ????
sound name Assign name to sound
filename Name of sound file (e.g. "PhoneRinging.wav")
font name Assign name to font
filename Name of font file (e.g. "Arial.ttf")
glyphs ????
soundtrack filename Name of soundtrack file (e.g. "1812Overture.mp3")
quicktime url ????
define name Assign name to define
value 0 ????
point name Assign name to point
x 0 ????
y 0 ????
gradient name Assign name to gradient
@radial 0 Whether gradient is radial/linear
rotate 0 Direction of gradient
scale ????
scalex ????
scaley ????
x ????
y ????
width ????
height ????
r ????
shear ????
interpolation name Assign name to interpolation
function linear ????
speed 1.3 ????
amplitude 0 ????
bounces 2 ????
growth 1.5 ????
damping 2 ????
slope 0 ????
outline name Assign name to outline
format simple ????
textshape name Assign name to textshape
font Font for the textshape
size 100% Percentage of default size
text Message text (e.g. "Hello world!")
blur name Assign name to blur
blur ????
blurx x distance to blur
blury y distance to blur
passes 1 Number of times to apply blur
gradientglow name Assign name to gradientglow
gradient ????
blur ????
blurx x distance to blur
blury y distance to blur
angle 0.0 Blur angle (0.0 is straight down)
distance 0.0 Blur distance
strength 1.0 Opacity of gradient
@innershadow 0 ????
@knockout 0 ????
@composite 0 ????
@ontop 0 ????
passes 1 ????
dropshadow name Assign name to dropshadow
color Color of the shadow
blur ????
blurx ????
blury ????
angle 0.0 ????
distance 0.0 ????
strength 1.0 ????
@innershadow 0 ????
@knockout 0 ????
@composite 0 ????
passes 1 ????
bevel name Assign name to bevel
shadow ????
highlight ????
blur ????
blurx ????
blury ????
angle 0.0 ????
distance 0.0 ????
strength 1.0 ????
@innershadow 0 ????
@knockout 0 ????
@composite 0 ????
@ontop 0 ????
passes 1 ????
box name Assign name to box
width Width of the box
height Height of the box
color white Color of the box's border
line 1 Thickness of the box's border
@fill none Color/gradient to fill with
circle name Assign name to circle
r ????
color white ????
line 1 ????
@fill none ????
filled name Assign name to filled
outline Name of outline object to use
color white Border color
line 1 Border width
@fill none Color/gradient to fill with
egon name Assign name to egon
vertices ????
color white ????
line 1 ????
@fill none ????
text name Assign name to text
text ????
font ????
size 100% ????
color white ????
edittext name Assign name to edittext
font ????
size 100% ????
width ????
height ????
text ????
color white ????
maxlength 0 ????
variable ????
@password 0 Whether to use password characters (i.e. asterisks)
@wordwrap 0 Whether to wrap words
@multiline 0 Whether to make the text single or multiline
@html 0 ????
@noselect 0 ????
@readonly 0 ????
@border 0 ????
@autosize 0 ????
align ????
morphshape name Assign name to morphshape (NOTE: morphshapes not fully implemented as of 2010/02/16?)
start Outline before morphing
end Outline after morphing
button name Assign name to button
show name Assign name to show
x 0 ????
y 0 ????
red
0
????
green
0
????
blue
0
????
alpha
0
????
luminance ????
scale ????
scalex ????
scaley ????
blend ????
filter ????
pivot ????
pin ????
shear ????
rotate ????
ratio ????
above ????
below ????
as ????
on_press position inside ????
on_release position anywhere ????
on_move_in state not_pressed ????
on_move_out state not_pressed ????
on_key key any ????
play name Assign name to play
loop 0 ????
@nomultiple 0 ????
stop name Assign name to stop
nextframe name Assign name to nextframe
previousframe name Assign name to previousframe
put name Assign name to put
x 0 ????
y 0 ????
red
0
????
green
0
????
blue
0
????
alpha
0
????
luminance ????
scale ????
scalex ????
scaley ????
blend ????
filter ????
pivot ????
pin ????
shear ????
rotate ????
ratio ????
above ????
below ????
startclip name Assign name to startclip
x 0 ????
y 0 ????
red
0
????
green
0
????
blue
0
????
alpha
0
????
luminance ????
scale ????
scalex ????
scaley ????
blend ????
filter ????
pivot ????
pin ????
shear ????
rotate ????
ratio ????
above ????
below ????
move x ????
y ????
interpolation linear ????
smove name Assign name to smove
x ????
y ????
interpolation linear ????
sweep x ????
y ????
r ????
dir counterclockwise ????
arc short ????
interpolation linear ????
change name Assign name to change
x Change objects x. Deprecated - use .move instead.
y Change objects y. Deprecated - use .move instead.
red ????
green ????
blue ????
alpha ????
luminance ????
scale ????
scalex ????
scaley ????
blend ????
filter ????
pivot ????
pin ????
shear ????
rotate ????
ratio ????
above ????
below ????
interpolation linear ????
schange name Assign name to schange
red ????
green ????
blue ????
alpha ????
luminance ????
scale ????
scalex ????
scaley ????
blend ????
filter ????
pivot ????
pin ????
shear ????
rotate ????
ratio ????
above ????
below ????
interpolation linear ????
jump name Assign name to jump
x ????
y ????
red ????
green ????
blue ????
alpha ????
luminance ????
scale ????
scalex ????
scaley ????
blend ????
filter ????
pivot ????
pin ????
shear ????
rotate ????
ratio ????
above ????
below ????
del name Assign name to del
texture name Assign name to texture
x 0 ????
y 0 ????
width ????
height ????
scale ????
scalex ????
scaley ????
r ????
shear ????
rotate ????
toggle name Assign name to toggle
fixed_alignment ????
sprite name Assign name to sprite
scalinggrid ????
action filename ????
initaction name Assign name to initaction
filename ????
include filename ????