Next:
Contents
Contents
SWFKit Series 3 Manual
August 29, 2007
Contents
Tutorials
Converting your flash movies to an executable program
Add more functions to your application
Using FFish script objects synchronously in ActionScript 2/3
Setting the class path for ActionScript 2/3
Defining hot keys for SWFKit plug-in commands
Installing the plug-in and commands manually
Attaching to a SWFKit project
Adding functions, preview, and testing
About the trace method of SWFKit
Handling events of the FFish script objects
How does the synchronous calls work
Wrapping ActiveX components
Differences between wrapper classes for actionscript 2 and actionscript 3
Calling methods written in ffish script from within actionscript 2 or 3
Calling actionscript methods from within ffish script
Remarks
Data exchanging between Action Script and FFish Script
The setVariable method and the getVariable method
The updateData method
getArray, putArray, getObject, putObject
Protecting your applications
Bypassing the default handler
Check if it is expired
Registration
Protecting your resource files
Using menus
The main menu
The context menu
Using ActiveX Objects
Registering ActiveX objects manually
Registering ActiveX objects on end users' systems I - using the "register" method
Registering ActiveX objects on end users' systems II - let the setup programs do it
Using ActiveX dlls without registration
Stand alone programs and the Flash Player
The ``trace'' method
The variable scope in FFish Script
Using SWFKit Pro to call functions in dynamic-linked libraries(dlls)
Declaring the dll functions
Calling dll functions and get results
Building windowless projectors
Accessing disk files
Launching external applications
Opening system dialog boxes
Accessing databases
Programming the tray icons
Downloading and uploading files
Sending and receiving emails
Creating multiple forms
Changing screen resolutions
Screen capture
Reusing the web browser control
Playing avi, rm, mov, wmv, etc movies
Opening pdf files
Calling Active scripting languages
Using shared objects in packed movies
Using autoupdate
FFish Script Objects Reference
Global Object
Properties
NaN
Infinity
Methods
parseFloat
parseInt
escape
unescape
eval
isNAN
isFinit
trace
createControl
getMainWnd
getAppDir
getMovies
setWindowless
readProfile
writeProfile
processMsg
getAdditonalFile
getExeName
invoke
evals
decodeURI
encodeURI
decodeURIComponent
encodeURIComponent
Boolean object
Number object
Properties
MAX_VALUE
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY
methods
format
String object
Properties
length
Methods
charAt
charCodeAt
concat
fromCharCode
indexOf
lastIndexOf
slice
split
substr
substring
toLowerCase
toUpperCase
match
replace
search
anchor
big
blink
bold
fixed
fontColor
fontSize
italics
link
small
strike
sub
sup
Function Object
Properties
arguments
Array Object
Properties
length
Methods
concat
join
pop
push
reverse
shift
slice
sort
splice
unshift
Date Object
Methods
getDate
getDay
getFullYear
getHours
getMilliseconds
getMinutes
getMonth
getSeconds
getTime
getTimezoneOffset
getUTCDate
getUTCDay
getUTCFullYear
getUTCHours
getUTCMilliseconds
getMinutes
getUTCMonth
getUTCSeconds
getYear
setDate
setFullYear
setHours
setMilliseconds
setMinutes
setMonth
setSeconds
setTime
setUTCDate
setUTCFullYear
setUTCHours
setUTCMilliseconds
setUTCMinutes
setUTCMonth
setUTCSeconds
setYear
UTC
parse
toGMTString
toLocaleString
Math
Properties
E
LN2
LOG2E
LN10
LOG10E
PI
SQRT1_2
SQRT2
Methods
abs
acos
asin
atan
atan2
ceil
cos
exp
floor
log
max
min
pow
random
round
sin
sqrt
tan
Dialogs Object
Methods
msgBox
fileOpen
fileSave
chooseColor
chooseFont
browse
Shell Object
Methods
run
runConsole
runAndWait
open
print
explore
findExecutable
getSpecialFolder
addToRecentDocs
clearRecentDocs
emptyRecycleBin
getEnvironmentStrings
getEnvironmentVariable
setEnvironmentVariable
delEnvironmentVariable
expandEnvironmentStrings
setDesktopWallpaper
getFileVersionInfo
MCI Object
Properties
alias
canEject
canPlay
canRecord
canStep
deviceID
deviceType
fileName
frames
from
length
mode
notify
position
recordMode
sharable
channel
start
timeFormat
to
track
trackLength
trackPosition
wait
playerWindow
error
errorMsg
command
left
top
width
height
Methods
sendCmdString
getDevices
hmsHour
hmsMinute
hmsSecond
makeHMS
makeMSF
makeTMSF
msfFrame
msfMinute
msfSecond
tmsfMinute
tmsfFrame
tmsfSecond
tmsfTrack
Events
onNotify
Application Object
Properties
Appearance
SizeAndPos
Interaction
Behaviour
SysTray
Preferences
Expiry
dragdrop
clipboard
StatusBar
cmdLine
cmdItems
cursor
isScr
traceWnd
captureMouse
setFocus
Methods
getBasePath
setBasePath
associate
setInterval
clearInterval
traceToFile
about
setDragRegion
sendMessage
registerASMethods
Events
onGetMovie
onMovieLoaded
Application.Appearance
Properties
windowShape
borderStyle
borderIcons
scaleMode
caption
icon
Application.SizeAndPos
properties
windowSize
pos
bKeepRatio
methods
setCustomPos
setCustomSize
setCustomSizeAndPos
Application.Interaction
Properties
lBtnClk
rBtnClk
keyPress
exitKeys
hotKey
bDisableAltTab
bDisableCursor
bDisableScr
Application.Behaviour
Properties
bAllowExtendContextMenu
extendContextMenu
bAutoPlay
bStartMinimized
bAlwaysOnTop
bShowInSystemTray
Application.Expiry
Properties
bEnable
expireOn
leftDays
bEnableUnlock
isExpired
isRegistered
expiryMsg
rbCustomized
rbCaption
rbInfo
rbShow3rdBtn
rb3rdBtnCaption
rb3rdBtnLink
username
serialNumber
Methods
showRegisterDlg
register
Events
onExpiry
Application.SysTray
Properties
tip
icon
balloonTip
balloonTitle
balloonTimeout
balloonIcon
useDefaultHandler
Methods
add
modify
remove
showBalloonTip
Events
onMouseMove
onLClicked
onRClicked
onLDblClicked
onRDblClicked
Application.Preferences
Properties
wakeupMethod
hotKey
disableCursor
disableCDAutoRun
Application.dragdrop
Properties
enable
Events
onDragEnter_Text
onDragEnter_Files
onDragOver_Text
onDragOver_Files
onDragLeave
onDropText
onDropFiles
onDragGetData
Application.clipboard
Methods
copyBitmap_Screen
copyBitmap_Movie
copyText
paste
pasteBitmap
Application.StatusBar
Properties
progress
Methods
init
setPaneText
setPaneIcon
setPaneWidth
disablePane
setPaneBorder
show
hide
Menu
Properties
enableAccel
Methods
load
setMenu
createMenu
createPopupMenu
appendItem
insertItem
removeItem
getSubMenu
show
Events
onCommand
onUpdateItem
Encryption
Methods
blowfishEncode
blowfishDecode
md5
md5File
desEncode
desDecode
encFile
decFile
DiskInfo
Properties
modelNumber
revisionNumber
driveType
bufferSize
cylinders
heads
sectors
DataFile
Methods
load
loadAndDec
save
saveAndEnc
remove
DesktopToy
Properties
followCursor
Methods
act
stop
Events
onStop
Window Object
Properties
caption
left
top
width
height
parent
handle
className
visible
enable
clientRect
windowState
Methods
show
hide
close
getChildren
getWindowsByName
find
bringToTop
modifyStyle
modifyStyleEx
move
update
animate
fly
fly2
center
Events
onClose
onQueryClose
onEnter
onLeave
onHover
onSize
onMessage
FlashPlayer Object
Properties
totalFrames
playing
quality
scaleMode
alignMode
backgroundColor
loop
movie
frameNum
wmode
salign
base
scale
bgColor
showPrintDlg
printerProperties
Methods
bindData
unbindData
unbindAll
updateData
getArray
putArray
getObject
putObject
setZoomRect
zoom
pan
play
stop
back
forward
rewind
gotoFrame
currentFrame
isPlaying
percentLoaded
flashVersion
loadMovie
setVariable
getVariable
targetGotoFrame
targetGotoLabel
targetCurrentFrame
targetCurrentLabel
targetPlay
targetStopPlay
targetGetProperty
targetSetProperty
targetCallFrame
targetCallLabel
targetGetPropertyNum
targetSetPropertyNum
getMovieInfo
movieToWindow
Events
onContextMenu
RegExp Object
Properties
source
global
ignoreCase
multiline
lastIndex
input (or $_)
lastMatch
leftContext
rightContext
$1 ...$9
lastParen
Methods
compile
exec
test
ActiveXObject Object
Methods
register
unregister
setProperty
addObjectInfo
ActiveXObject Object Events
EnablePropertyNotify
OnPropertyChanged
OnPropertyWillChange
onError
Enumerator Object
Properties
atEnd
item
Methods
moveFirst
moveEnd
moveNext
RegKey Object
Properties
className
newCreated
lastWriteTime
Methods
create
open
getSubkeyNames
getValues
getValue
write
deleteKey
deleteValue
RegValue Object
Properties
name
type
data
Ini Object
Methods
getInt
getSection
getSectionNames
getString
writeSection
writeString
deleteSection
deleteKey
FontObject Object
Properties
bold
color
italic
name
size
underline
Methods
getFonts
Shortcut Object
Properties
arguments
description
hotKey
iconLocation
targetPath
windowStyle
workingDirectory
Methods
save
URLShortcut Object
Properties
url
Methods
save
Mail Object
Properties
from
replyTo
to
subject
cc
bcc
date
priority
size
text
html
attachmentCount
htmlItemCount
Methods
save
load
asText
getAttachmentContentType
getAttachmentName
saveAttachment
addAttachment
removeAttachment
getHtmlItemName
getHtmlItemID
saveHtmlItem
addHtmlItem
SendMail Object
Properties
server
port
username
password
Methods
send
connect
command
write
close
Events
onSend
RecvMail Object
Properties
server
port
Username
password
Methods
connect
close
dele
list
noop
quit
retr
rset
stat
top
uidl
Events
onRecv
Inet Object
Methods
ping
mxfind
isInetConnected
getDNS
getIPConfig
getUrl
getHttpFileSize
getHttpFileLastModifiedTime
getHttpFileStatus
getHttpFileHeader
openFtp
Events
onPinging
onGetUrl
Inet.Ftp Object
Methods
connect
createDir
removeDir
deleteFile
rename
getFileInfo
list
download
upload
close
Properties
currentDir
Events
onDownload
onUpload
IPConfig Object
Properties
ifNum
Methods
ifType
ifIP
ifIPMask
ifDefaultGateway
ifMac
ifDesc
SysInfo Object
Properties
computerName
userName
version
workarea
totalPhysMemory
availPhysMemory
cpuSpeed
screenSaver
screenSaverActive
screenSaverTimeout
displaySetting
Methods
powerOff
logOff
reboot
shutdown
getDisplaySettings
Folder
Properties
attributes
dateCreated
dateLastAccessed
dateLastModified
drive
isRootFolder
name
parentPath
path
shortName
shortPath
size
subFolders
files
Methods
copy
remove
move
files
exists
File Object
Properties
attributes
dateCreated
dateLastAccessed
dateLastModified
drive
name
parentPath
path
shortName
shortPath
size
type
Methods
copy
remove
move
exists
Drive Object
Properties
availableSpace
driveLetter
driveType
fileSystem
freeSpace
isReady
path
rootFolder
serialNumber
totalSize
volumeName
drives
StringStream Object
Properties
length
getPos
putPos
eof
crc
Methods
get
getLong
getShort
getFloat
getDouble
read
readLine
put
putShort
putFloat
write
writeLine
unget
flush
close
readString
readUnicodeString
writeUnicodeString
compress
uncompress
readFromFile
saveToFile
FileStream(Stream) Object
Properties
length
pos
eof
Methods
get
getLong
getShort
getFloat
getDouble
read
readLine
put
putShort
putFloat
write
writeLine
unget
flush
close
readString
readUnicodeString
writeUnicodeString
Socket Object
Properties
error
Methods
accept
asyncSelect
bind
close
connect
create
getPeerName
getSockName
getSockOpt
setSockOpt
ioctl
listen
receive
receiveFrom
send
sendTo
shutDown
htonl
htons
ntohl
ntohs
Events
onAccept
onClose
onConnect
onOOBData
onReceive
onSend
SplashWnd
Properties
timeout
window
Methods
loadSWF
Events
onFSCommand
onTimeout
Splash2
Methods
close
Printer
Properties
printers
printerIndex
title
pageCount
silent
orientation
paperSize
copies
continuePrinting
pageHeight
pageWidth
font
brush
pen
bkColor
textColor
bkMode
Methods
print
printPreview
printText
printText2
getWrappedTextExtent
getTabbedTextExtent
getTextHeight
getTextExtent
printImage
getImageSize
line
rectangle
roundRect
ellipse
fillRect
Events
onPreparePrinting
onBeginPrinting
onNewPage
onPrint
onEndPrinting
Image
Properties
width
height
bitCount
twainReady
twainSourceSelected
Methods
load
save
mirror
flip
rotate90
rotate270
zoom
adjustRGB
adjustBrightness
adjustContrast
adjustHS
invert
blur
blurGauss
sharpen
emboss
to24Bits
toGray
crop
getCount
captureScreen
captureMovie
loadImage
twainInit
twainSelectSource
twainAcquire
Events
onCopyImage
DirectX
Properties
joysticks
Methods
setDisplayMode
restore
Joystick
Properties
buttons
x
y
z
rx
ry
rz
uaxis
vaxis
pov0, pov1, pov2, pov3
range
deadzone
Methods
read
buttonState
Events
onLeft
onRight
onUp
onDown
onPress
Dll
Methods
registerFunction
unregisterFunction
getPointerValue
getPointerStringValue
getPointerWideStringValue
Struct
Properties
align
structSize
Sound
Properties
mixerName
Sound.playback.masterMute
Sound.playback.masterVolume
Sound.playback.waveMute
Sound.playback.waveVolume
Sound.playback.midiMute
Sound.playback.midiVolume
Sound.playback.CDMute
Sound.playback.CDVolume
Sound.playback.lineInMute
Sound.playback.lineInVolume
Sound.playback.microphoneMute
Sound.playback.microphoneVolume
Sound.recording.lineInSelect
Sound.recording.lineInVolume
Sound.recording.microphoneSelect
Sound.recording.microphoneVolume
Events
Sound.playback.onMasterMute
Sound.playback.onMasterVolumeChange
Sound.playback.onWaveMute
Sound.playback.onWaveVolumeChange
Sound.playback.onMidiMute
Sound.playback.onMidiVolumeChange
Sound.playback.onCDMute
Sound.playback.onCDVolumeChange
Sound.playback.onLineInMute
Sound.playback.onLineInVolumeChange
Sound.playback.onMicrophoneMute
Sound.playback.onMicrophoneVolumeChange
Sound.recording.lineInSelect
Sound.recording.onLineInVolumeChange
Sound.recording.onMicrophoneSelect
Sound.recording.onMicrophoneVolumeChange
PConn Object
Methods
listen
send
Form Object
Methods
show
close
getVariable
setVariable
targetGotoFrame
targetGotoLabel
targetCallFrame
targetCallLabel
setBase
loadMovie
createControl
Properties
movie
showCaption
canDrag
clipRegion
caption
initVars
window
Events
onExit
ScriptHost Object
Methods
open
close
runScript
runScriptFile
getScriptObject
FSCommands
FSCommands - FFish_Eval
FSCommands - FFish_Run
FSCommands - Quit
FSCommands - FullScreen
FSCommands - exec
FSCommands - FFish_Trace
About this document ...
Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.