As a new version, ColdfusionMX has a mechanism that specifically communicates with FLASHMX. This mechanism is complex to use. Is there a way to communicate in a traditional way? The answer is yes!
In fact, the method is similar to PHP and ASP.
In FLASH, the method is called:
loadVariablesNum("http://your own path/?parameter 1="+name, 0, "POST");
In the cf part, just use <cfoutput></cfoutput> to output the corresponding content.
In CF, you only need to use "url. variable name".
At the same time, you can get the corresponding CF transmission value in flash.
hint:
1. If there is no Chinese, the system will have no problems.
2. If you want to process Chinese in cfmx, please add the next four statements.
<cfprocessingdirective pageencoding="gb2312">
<cfcontent type="text/html; charset=gb2312">
<cfset setEncoding("URL", "gb2312")>
<cfset setEncoding("Form", "gb2312")>
At the same time, add the:=true statement in flashmx
3. If the data is transmitted from flash to cf, Chinese is not included, and CF wants to return to Chinese,
You don’t need to add the above two codes, and you can get normal Chinese content in FLASH! !
In fact, the method is similar to PHP and ASP.
In FLASH, the method is called:
loadVariablesNum("http://your own path/?parameter 1="+name, 0, "POST");
In the cf part, just use <cfoutput></cfoutput> to output the corresponding content.
In CF, you only need to use "url. variable name".
At the same time, you can get the corresponding CF transmission value in flash.
hint:
1. If there is no Chinese, the system will have no problems.
2. If you want to process Chinese in cfmx, please add the next four statements.
<cfprocessingdirective pageencoding="gb2312">
<cfcontent type="text/html; charset=gb2312">
<cfset setEncoding("URL", "gb2312")>
<cfset setEncoding("Form", "gb2312")>
At the same time, add the:=true statement in flashmx
3. If the data is transmitted from flash to cf, Chinese is not included, and CF wants to return to Chinese,
You don’t need to add the above two codes, and you can get normal Chinese content in FLASH! !