简体   繁体   中英

Replacing some string in an SWF/FLASH file using PHP

I have some flash swf files where i hard coded some variables to use with action script like p='mydomain.com'

I want to replace the value of mydomain.com with a given string using a php script . I know this can be done using Binary operation, but it failed for me . Can anyone help me to find a solution using php 's built in functions only (No third party language) .

Thanks

You can have PHP pass variables to the swf file using GET variables.

http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm

The magic line is this:

loadVariables("http://localhost/test.php", this, "GET");

EDIT:

After considering the options, you may want to store strings that are likely to change in an XML file and read the values at runtime.

http://www.kirupa.com/web/xml/XMLwithFlash3.htm

http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM