As a new version, coldfusionmx has a dedicated mechanism for communication with flashmx. Is there a way to communicate in the traditional way? The answer is yes!
The method is similar to PhP and ASP.
The calling method in Flash is as follows:
Loadvariablesnum ("http: // your own path/test. cfm? Parameter 1 = "+ name, 0," Post ");
In the CF section, you only need to use <cfoutput> </cfoutput> to output the corresponding content.
You only need to use "url. variable name" for flash variables in CF.
At the same time, you can get the corresponding CF transfer value in flash.
Tip:
1. If you do not have any Chinese characters, the system will have no problems.
2. If you want to process Chinese Characters in cfmx, add the following four statements.
<Cfprocessingdirective pageencoding = "gb2312">
<Cfcontent type = "text/html; charset = gb2312">
<Cfset setencoding ("url", "gb2312")>
<Cfset setencoding ("form", "gb2312")>
Add the system. usecodepage = true statement to flashmx.
3. If the data transmitted from flash to CF does not contain Chinese characters, and CF wants to return Chinese characters,
The above two sectionsCodeYou can get the normal Chinese content in flash !!