extracting SWF gives compiler errors in adobe flash CS4

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2010-04-24T11:08:30Z Indexed on 2010/04/24 11:13 UTC
Read the original article Hit count: 488

Hey, I have been given an SWF to edit a link in the AS code. The fact is the SWF uses some XML that is generated (actually retrieved) by PHP code from a database.

menuXML.load("/sub/page/dynamic.php?genre=" + genre); 

so the point is we can use the same SWF 'mainfraim' and fill them with different animations/sources based on the link provided in dynamic.php?genre=###

Now, I've used Flash Decompiler Gold to extract all files in the SWF and can open it again in Adobe Flash to edit it. When done I enter CTRL+ENTER and there are immediately 4 compiler errors!! Errors: 1x < Unexpected 'if' encountered > 2x < Statement block must be terminated by '}' > 1x < Ecpected a field name after '.' operator. >

How can these errors be present, when the original SWF works perfectly??!

If I don't manage to solve this, I'll have to find out how to create an .php file the SWF tries to use which can select the proper resources (from a database I guess) to show them (using ?genre=###)

Thanks!

© Stack Overflow or respective owner

Related posts about swf

Related posts about php