Precautions for local testing of SwF and web page Interaction
Source: Internet
Author: User
Note that the test is performed locally.
I. encoding format. If it is UTF-8 encoding, the system will prompt whether to load the control when the page contains the object. If it is changed to gb2312 encoding, no prompt will be displayed.
2. If a webpage encoded with gb2312 contains Chinese characters when passing parameters to the SWF object on the page, the SWF needs to be transcoded as follows after it is received:
VaR BA: bytearray = new bytearray;
Ba. writemultibyte (value, "UTF-8 ");
Ba. Position = 0;
Value = ba. readmultibyte (BA. length, "UTF-8 ")
3. SWF enables full-screen attribute settings on the webpage
<Param name = "allowfullscreen" value = "true"/>
Iv. settings required for local test of SwF and web page Interaction
<Param name = "allowScriptAccess" value = "always"/>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service