Coldfusionmx and flashmx Communication Method

Source: Internet
Author: User

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 !!

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.