Use PHP to quickly develop a natural Flash animation

Source: Internet
Author: User
RichInternetApplication is a new term in Web2.0. in essence, a key component of Web2.0 is AdobeFlash. Understand how to integrate Flash animation into the exploitation program, and apply the Ming library to dynamic and natural Flash animation. Web

Rich Internet Application is a new term in Web 2.0. in essence, a key component of Web 2.0 is Adobe Flash. Understand how to integrate Flash animation into the exploitation program, and apply the Ming library to dynamic and natural Flash animation.

Web 2.0 introduces Rich Internet Application. But what does Rich Internet Application mean? Generally, it means adding a highly responsive transaction hold to the exploitation program. Specifically, it means that widgets, Web forms, and reports on the page can be instantly changed without retrieving new pages from the server.

One method for building Rich Internet Application (RIA) is to apply Dynamic HTML (Dynamic HTML, DHTML), which is Ajax, JavaScript, and Cascading Style Sheet (CSS) and HTML (see references ). However, DHTML is not the only way to add Interaction Control to Web applications. Another important method is the application of Adobe Flash Player, which has been used to add interactive control for Web sites for ten years.

The first version of Flash was used to create animated images. The latest version of Flash can now host a complete interface for controlling Web service visits and applying ECMAScript (the official version of JavaScript) to provide complete script support.

Understanding Flash

Flash Player is integrated into running Microsoft®Windows®, Mac OS X, and Linux®A plug-in the Web browser of the computer. As of press release, the latest Flash Player version is V8. It is available for free and is installed with most browsers. It is very popular and has excellent client penetration capabilities-and this penetration capability has been improved with the presentation of services such as YouTube and Google Video, these services are applied to Flash display Video streams.

Flash Player is only one end of the balance. To play a role, Flash Player also needs to apply a Flash animation. This type of animation is usually a file compiled by a Flash development tool. its file is expanded to. swf. However, as you will see in this article, you can also use the Ming library to dynamically build. swf files in almost the same way as creating images dynamically, and draw images on the Web server. The Ming library uses the objects and methods built by PHP code to build the control code in the new. swf file.

You can use either of the two methods to view the. swf file on the Web site. The first method is to navigate to the URL of the. swf file. In this way, all content areas of the Web server will be switched to Flash animation. This method is easy to debug, but it is important to embed an animation into an HTML Web page.Marking. TheTag and then reference the SWF animation through the URL.The strength of the method is that you can place an animation on any page and dynamically hold it through JavaScript code, just like processing any other element on the page.

Listing 1 shows a reference to SWF animation.Tag example.

Listing 1. Embedded Flash animation

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.