Below you will find information about Command-Line usage.
Sintax
toKaos.exe [-g:config-file] as-project
config-file [optional] configuration file absolute path. If not specified toKaos looks for user settings of the last processing using toKaos gui.
If the project was never processed with toKaos gui the standard default values will be taken.
as-project mandatory. Absolute path of an .mxml file or .as file or .fla file or a source directory.
Examples
"C:\Program Files\KSOL\toKaos\toKaos.exe" –g:C:\Projects\MyProjectX\MyProjectX.cfg C:\Projects\MyProjectX\src\MyProjectX.mxml
"C:\Program Files\KSOL\toKaos\toKaos.exe" C:\Projects\MyProjectX\src\MyProjectX.mxml
"C:\Program Files\KSOL\toKaos\toKaos.exe" –g:C:\Projects\MyProjectY\MyProjectY.cfg C:\Projects\MyProjectY\src\MyProjectY.as
"C:\Program Files\KSOL\toKaos\toKaos.exe" C:\Projects\MyProjectY\src\MyProjectY.as
"C:\Program Files\KSOL\toKaos\toKaos.exe" –g:C:\Projects\MyProjectZ\MyProjectZ.cfg C:\Projects\MyProjectZ\src\MyProjectZ.fla
"C:\Program Files\KSOL\toKaos\toKaos.exe" C:\Projects\MyProjectZ\src\MyProjectZ.fla
"C:\Program Files\KSOL\toKaos\toKaos.exe" –g:C:\Projects\MyProjectLib\MyProjectLib.cfg C:\Projects\MyProjectLib\src\
"C:\Program Files\KSOL\toKaos\toKaos.exe" C:\Projects\MyProjectLib\src\
Configuration file specification
Is a .INI file standard format, it contains two section: [startup] and [user].
[startup] Section
It contains the encryption/obfuscation parameters.
| a1 | Encrypt package identifier | 0: do not encrypt 1: encrypt |
| a2 | Encrypt class identifier | 0: do not encrypt 1: encrypt |
| a3 | Encrypt public variable identifier | 0: do not encrypt 1: encrypt |
| a4 | Encrypt public function identifier | 0: do not encrypt 1: encrypt |
| a5 | Compact sources | 0: do not compact 1: compact |
| a6 | Encrypt public function parameter identifier | 0: do not encrypt 1: encrypt |
| a7 | Encryption type |
1: Maximum length identifiers
2: Medium length identifiers
3: Minimum length identifiers
6: Variable length identifiers
7: Lowercase identifiers
|
[user] Section
It contains three types of informations: reserved identifiers, libraries and elements to not encrypt:
| wxxx | Rserved identifiers | w001=getAge w002=processGuid |
| lxxx | Libraries Sintax: name|path | l001= FlexLibs|D:\Kaos\FlexMdi11 |
| pxxx | Package identifiers to not encrypt Sintax: package | p001= com.yahoo.astra.animation p002= com.yahoo.astra.mx.core |
| cxxx | Class identifiers to not encrypt Sintax: package|class | c001= com.yahoo.astra.animation|Animation c002= com.yahoo.astra.utils|ColorUtil |
| fxxx | Function identifiers to not encrypt Sintax: package|class|function | f001= com.yahoo.astra.animation|Animation|whiteOrBlack |
| vxxx | Variable identifiers to not encrypt Sintax: package|class|variable | v001= com.yahoo.astra.animation|AnimationEvent|parameters |
| rxxx | Function parameter to not encrypt Sintax: package|class|function|parameter | r001= com.yahoo.astra.utils|ColorUtil|HSBColor|brightness|value |
| axxx | Function local variable to not encrypt Sintax: package|class|function|variable | a001= com.yahoo.astra.utils|ColorUtil|HSBtoRGB|rgb |
Example of a config-file
[startup]
a1=0
a2=1
a3=1
a4=1
a5=0
a6=1
a7=3
[user]
w001=Animation
w002=ThumbSkin
l001=FlexLibs|C:\Projects\MyProjectX\MyLib\src
c001=|Astra
c002=com.yahoo.astra.animation|Animation
p001=com.yahoo.astra.mx.skins.halo
f001=com.yahoo.astra.utils|ColorUtil|CMYKToCMY
f002=com.yahoo.astra.utils|ColorUtil|HSBToCMYK
v001=com.yahoo.astra.utils|HSBColor|_saturation
v002=com.yahoo.astra.utils|HSBColor|_hue
r001=com.yahoo.astra.utils|ColorUtil|CMYKToCMY|cmyk
a001=com.yahoo.astra.utils|ColorUtil|CMYKToCMY|cyan
a002=com.yahoo.astra.utils|ColorUtil|CMYKToCMY|key
a003=com.yahoo.astra.utils|ColorUtil|CMYKToCMY|magenta
a004=com.yahoo.astra.utils|ColorUtil|CMYKToCMY|yellow
|