SoFunction
Updated on 2025-04-14

Notes on local testing of swf and web interaction

Note that it is tested locally
1. Encoding format. If it is utf-8 encoding, it will prompt whether to load the control when opening the page with an object object. If it is changed to gb2312 encoding, there will be no prompt.
2. If a web page encoded in gb2312 contains Chinese characters when passing parameters to the swf object in the page, the swf needs to be transcoded as follows after receiving it:
var BA:ByteArray = new ByteArray;
(value,"utf-8");
= 0;
value=(,"utf-8")
3.swf implements full-screen attribute settings in web pages
<param name="allowFullScreen" value="true" />
4. Swf interacts with web pages and must set items locally
<param name="allowScriptAccess" value="always" />