Hello COFFRE,
Tuesday, April 23, 2002, 9:49:07 AM, you wrote:
CRF> Oliva,
CRF> When I run your script as follows :
>>> do %flash/make-swf/exam-swf.r %appflash.swf
CRF> Script: "SWF Examiner" (17-Dec-2001)
CRF> == %appflash.swf
>>>
CRF> But I see nowhere the result of the analysis.
CRF> What should I see ?
Sorry for very late reply (I was not connected yet)
Exam-swf.r script is not just one function but more functions. The
main is the 'exam-swf
so if you have the script loaded :
>> do %exam-swf.r
>> exam-swf
SWF file:new.swf
Searching the binary file... swf size: 56 bytes
-------------------------
make object! [
version: 5
length: 56
frame-size: [0 6400 0 6400]
frame-rate: 60
frame-count: 1
]
setBackgroundColor(9): 153.165.139
DoAction Tag(12):
ActionPush #{006163636F756E7400} ["account"]
ActionGetVariable #{1C} #{}
ActionPush #{006E616D6500} ["name"]
ActionGetMember #{4E} #{}
ActionDelete #{3A} #{}
END of ActionRecord #{00} #{}
showFrame(1):
end(0):
>>
I've updated the file now (because I was improving it a little bit to
show some FlashMX tags properly) and add /quiet switch so the
informations are not printed byt just swf object is returned:
>> exam-swf/quiet
SWF file:new.swf
>> probe swf
make object! [
header:
make object! [
version: 5
length: 56
frame-size: [0 6400 0 6400]
frame-rate: 60
frame-count: 1
]
rect: none
data: [[9 3 #{99A58B}] [12 25
#{960900006163636F756E74001C960600006E616D65004E3A00}] [1 0 #{}] [0 0 #{}]]
]
>>
You may see that there are the Flash tags as block in the swf/data so
you may work with them as for example:
>> parse-ActionRecord swf/data/2/3
ActionPush #{006163636F756E7400} ["account"]
ActionGetVariable #{1C} #{}
ActionPush #{006E616D6500} ["name"]
ActionGetMember #{4E} #{}
ActionDelete #{3A} #{}
END of ActionRecord #{00} #{}
But these functions are done to just print informations, not to return
pure data (I've modified some of the functions to also return the data
in the %exam-swf-mod.r that replaces some of the parsing functions
(this is not complete yet) There is still a lot of thinks, that should be
fixed or improved.
cheers Oldes
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.