4 |
|
|
5 |
# $Id$ |
# $Id$ |
6 |
# $Log$ |
# $Log$ |
7 |
|
# Revision 1.2 2004/07/23 12:24:52 joko |
8 |
|
# pod |
9 |
|
# |
10 |
# Revision 1.1 2004/07/23 12:13:14 joko |
# Revision 1.1 2004/07/23 12:13:14 joko |
11 |
# initial commit |
# initial commit |
12 |
# |
# |
13 |
|
|
14 |
=pod |
=pod |
|
This software is Copyright (C) 2004 Andreas Motl |
|
|
Ideas and future AppleScript integration by Holger Marseille. |
|
15 |
|
|
16 |
This program is free software; you can redistribute it and/or |
This software is Copyright (C) 2004 Andreas Motl |
17 |
modify it under the terms of the GNU General Public License |
Ideas and future AppleScript integration by Holger Marseille. |
18 |
as published by the Free Software Foundation; either version 2 |
|
19 |
of the License, or (at your option) any later version. |
This program is free software; you can redistribute it and/or |
20 |
|
modify it under the terms of the GNU General Public License |
21 |
This program is distributed in the hope that it will be useful, |
as published by the Free Software Foundation; either version 2 |
22 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
of the License, or (at your option) any later version. |
23 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
24 |
GNU General Public License for more details. |
This program is distributed in the hope that it will be useful, |
25 |
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
26 |
You should have received a copy of the GNU General Public License |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
27 |
along with this program; if not, write to the Free Software |
GNU General Public License for more details. |
28 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
29 |
|
You should have received a copy of the GNU General Public License |
30 |
|
along with this program; if not, write to the Free Software |
31 |
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
32 |
|
|
33 |
=cut |
=cut |
34 |
|
|
35 |
|
|
37 |
|
|
38 |
=head1 Features |
=head1 Features |
39 |
|
|
40 |
=head2 Requests |
=head2 Functions |
41 |
|
|
42 |
|
fluscate handles two different styles of function declarations: |
43 |
|
|
44 |
|
1. "Normal" ones |
45 |
|
function mp3Player ('arg1', 'arg2') |
46 |
|
|
47 |
|
2. There may be "stacked" function declarations |
48 |
|
push 'mp3Player' |
49 |
|
function () |
50 |
|
|
51 |
|
|
52 |
|
=head1 Usage |
53 |
|
|
54 |
|
=head2 win32 |
55 |
|
|
56 |
|
#> flasm.exe -d puzzle.swf > puzzle.flm |
57 |
|
#> cat puzzle.flm | perl fluscate.pl > puzzle_fusc.flm |
58 |
|
#> flasm.exe -a puzzle_fusc.flm |
59 |
|
|
60 |
|
=head2 *nix |
61 |
|
|
62 |
|
#> flasm -d puzzle.swf > puzzle.flm |
63 |
|
#> cat puzzle.flm | fluscate.pl > puzzle_fusc.flm |
64 |
|
#> flasm -a puzzle_fusc.flm |
65 |
|
|
66 |
|
|
67 |
|
=head1 Development |
68 |
|
|
69 |
|
=head2 Todo |
70 |
|
|
71 |
|
- provide list of flash event handler names to exclude from symbol replacement |
72 |
|
|
73 |
|
=head2 Wishlist |
74 |
|
|
75 |
- komplexere verschlüsselung als "-1, -2 ..." z-b nicht in der numerischen reihenfolge sondern nach |
- komplexere verschlüsselung als "-1, -2 ..." z-b nicht in der numerischen reihenfolge sondern nach |
76 |
zufallsprinip (-21,-3,-89)? (->random) |
zufallsprinip (-21,-3,-89)? (->random) |
77 |
- evtl. constants nach abfrage ersetzen ? leider sehr aufwendig, bei vielen constants (->ask) |
- evtl. constants nach abfrage ersetzen ? leider sehr aufwendig, bei vielen constants (->ask) |
82 |
trace |
trace |
83 |
branchIfTrue ls" |
branchIfTrue ls" |
84 |
... after each "constants" declaration (->pollute) |
... after each "constants" declaration (->pollute) |
85 |
|
- what about other symbols beside "function"s? (e.g. variables) (->mode) |
86 |
|
|
87 |
=head2 Functions |
=head2 Notes |
|
fluscate handles two different styles of function declarations: |
|
|
|
|
|
1. "Normal" ones |
|
|
function mp3Player ('arg1', 'arg2') |
|
|
|
|
|
2. There may be "stacked" function declarations |
|
|
push 'mp3Player' |
|
|
function () |
|
|
|
|
88 |
|
|
|
|
|
|
=head1 Notes |
|
89 |
- no function may be called "Initialize", rename it to (e.g.) "Initialize2", reassembling will not work otherwise |
- no function may be called "Initialize", rename it to (e.g.) "Initialize2", reassembling will not work otherwise |
90 |
(doesn't matter when obfuscating since function names will be replaced of course) |
(doesn't matter when obfuscating since function names will be replaced of course) |
91 |
- function names seem to be/work case insensitive (shuffle <-> Shuffle) |
- function names seem to be/work case insensitive (shuffle <-> Shuffle) |
95 |
- "getMember" and "getVariable" also do function calls! |
- "getMember" and "getVariable" also do function calls! |
96 |
- there are reserved function names which must not be replaced! (-> event handlers, e.g. "onPress") |
- there are reserved function names which must not be replaced! (-> event handlers, e.g. "onPress") |
97 |
|
|
|
=head1 Todo / Review |
|
|
- what about other symbols beside "function"s? |
|
|
|
|
|
=head1 Usage |
|
|
|
|
|
=head2 Usage (win32): |
|
|
#> flasm.exe -d puzzle.swf > puzzle.flm |
|
|
#> cat puzzle.flm | perl fluscate.pl > puzzle_fusc.flm |
|
|
#> flasm.exe -a puzzle_fusc.flm |
|
|
|
|
|
=head2 Usage (*nix): |
|
|
#> flasm -d puzzle.swf > puzzle.flm |
|
|
#> cat puzzle.flm | fluscate.pl > puzzle_fusc.flm |
|
|
#> flasm -a puzzle_fusc.flm |
|
|
|
|
98 |
=cut |
=cut |
99 |
|
|
100 |
|
|