Changing external as files?

just a simple question… is there anyway to permanently change an external as file using actionscript? Like changing a variable from the as file and then saving it back into it?

thanks.

Wel I dont think you can permanently change the as from another swf.
But what you could do, is use shared objects (some sort flash cookie).
The value from the cookie can be used to “fill” a variable, that you can use.

This however will only “change” the AS for the person with the SO.
If you want it to change for EVERYBODY, you could consider use php (or whatever serverside script language) to fill a var.

The AS files get compiled into your .swf anyway, so I don’t really understand why you would need to do that. If on the other hand you need to batch change a variable name across a bunch of as files, and then recompile, use the Sepy Editor and it’s handy find and replace function. You can use that to replace a variable name in all the AS files in a particular directory.

hi. Thanks for the replys.

ordinathorreur: i am trying to create a simple flash blog/ add comment system in flash, and since i dont know php i was hoping there was a way to do it using as.
Oh well… off i go and learn php… thanks anyhow