Hi,
I’m working on an ad modul that loads swf banner files. Unfortunately the client will not know if the swf banner file he wants to upload was written in AS1, AS2 or AS3. It is important information, because if the swf was written in AS1 or AS2 I had to use AS2 preloader or else I had to use AS3 preloader to load the file. (I must use a preloader because I had to catch the clicks and redirect)
I found a php class called swfheader, it gets a lot of information about the swf file but not the one I want to know :diss:
I googled forward and I found the SWF file specifications. I found in the document how to get this information from the swf but it was chinese for me.
So I googled forward and I found an article about this. http://stackoverflow.com/questions/2187830/how-can-the-actionscript-version-of-a-swf-file-be-determined-in-c
It’s a pseudo code about how to get this information from the swf file.
I used the downloaded swfheader class and I implemented the code in it. The main problem is I never found that tag code (69) what I’m looking for but I cannot figured out what is the problem in my code.
I attached the php file.
If sy has a good script for this problem or can help me what I’m doing wrong in my code plz let me know!
Thanks!