user34537
user34537

Reputation:

Is it possible to add code to a compiled SWF?

I asked this question about passing keystrokes to the page. Is there a simple way for me to add this to an already compiled swf?

Upvotes: 0

Views: 401

Answers (2)

toad013
toad013

Reputation: 1

if the compiled swf's security allows it, you can probably load that swf into another swf and have the parent swf catch all the keystrokes.

Upvotes: -1

fenomas
fenomas

Reputation: 11139

Not simple, no. SWFs are a compiled format, so the only realistic way to add in content is to decompile/edit/recompile, using a third-party decompiler of some sort. (In theory you could inject compiled code directly into the SWF, but you'd need to understand the file format pretty well to know whether you needed to redo checksums and so on.)

Upvotes: 2

Related Questions