tailieunhanh - Flash Builder 4 and Flex 4 Bible- P20

Flash Builder 4 and Flex 4 Bible- P20: When Macromedia first released Flash MX in 2002, the product was branded as the new way to build Rich Internet Applications (known by the acronym RIA). The term was invented at Macromedia to describe a new class of applications that would offer the benefits of being connected to the Internet, including access to various types of Web-based services, but would solve many of the nagging issues that had been inherent in browser-based applications since the mid-1990s | Chapter 29 Integrating Flex Applications with PHP FIGURE Configuring the PHP server 5. Make sure the Web server that hosts PHP is running and then click Validate Configuration to ensure that Flash Builder can reach the Web server. The output folder can be set to any location within the Web server s document root. The default output folder name starts with the project name and ends with -debug to indicate that the output folder contains the debug version of the application. For example the default output folder in the chapter29 project is placed under the PHP Web root with a name of chapter29-debug. 6. Click Next. 7. Select a Main application filename and click Finish to create the project and main application. When you create your PHP pages they can be placed in the project s source root folder. During the compilation process the PHP pages are recognized as application resources and copied to the project output folder from which they re called at runtime. On the Web If you want to try the sample applications from this chapter extract the files from the Web site s chapter2 9. zip file into the new Flex project s root folder. 921 Part IV Integrating Flex Applications with Application Servers Using PHP with HTTPService and XML You can integrate Flex applications with PHP using the Flex SDK s HTTPService component and PHP pages that generate structured XML-based content on the server. To return structured data from a PHP page you can either generate your own XML content with conventional text concatenation or you can use a more reliable approach that requires an external library to serialize XML packets. Using the PHP SimpleXML extension The PHP page in Listing uses a PHP5 extension named SimpleXML to generate and return an XML-formatted response with literal values in each of the XML elements. The header function is used to inform the client application that the content is being delivered with the xml text content type. Web Resource The documentation for .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.