tags:

views:

20

answers:

1

I use curl for grabing data from sites, but now i need to grab content from flash objects. i haven't any experience in flash, so could you tell me is it possible in general? if yes, what i need to learn for it?

Thanks

+1  A: 

Everything is possible, depending of how many efforts you could put in it. What content do you need? If you only need images, you could read SWF Format Specification, parse swf into tags, find DefineBitsJPEG ones and save their data.

alxx
i need only text content...
Syom
Static text resides in DefineText tags. But text also may be converted to vector contours (no glyph codes, graphics only). Also, swf may render text programmatically, and that would require parse ActionScript bytecode from DoABC tags (after all, SWF is a program).Edit: Static text (which was simply put to stage in Flash IDE) is easy enough to extract; all other is not.
alxx
hmmmm, from what i must start reading? give some links please. is it require deep knowledge in ActionScript? i don't know ActionScript at all...
Syom
Before diving into swf parsing, you could also use SWiX (http://www.swixkit.com/) to see if static text would suffice. If swf structure contains DefineText and there is text you need, you may try to parse it.If you decide to parse, see that pdf - you will need header format, tag header format, and DefineText format - that's all. Couple days of work (maybe).And ActionScript - no, you don't need it (now).
alxx
Thanks man;)...
Syom