Ec (2); Web2.0 introduces RichInternetApplication. But what does RichInternetApplication mean? Generally, it means adding highly responsive transaction operations to an application. Specifically, it means that widgets, Web forms, and reports on the page can be instantly changed without retrieving new pages from the server. One is used to construct RichInternetApplicatio script ec (2) and script
Web 2.0 introduces Rich Internet Application. But what does Rich Internet Application mean? Generally, it means adding highly responsive transaction operations to an application. 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 use Dynamic HTML (Dynamic HTML, DHTML), which is Ajax, Dynamic Cr partition pt, Cascading Style Sheet (Cascading Style Sheet, CSS) and HTML combination (see references ). However, DHTML is not the only way to add interactive operations to Web applications. Another important method is to use Adobe Flash Player, which has been used to add interactive operations for websites for ten years.
The first version of Flash was used to create animated images, and the latest version of Flash can now host a complete interface, it can be used to control Web service access and provide complete script support by using ECMAscr platinum pt (the official version of Javascr platinum pt.
Learn about Flash
Flash Player is integrated into running Microsoft®Windows®, Mac OS X, and linux®A plug-in the Web browser of the computer. By the end of this article, the latest version of Flash Player is V8. It is available for free and is installed with most browsers. It is very popular and has excellent client penetration power-and this penetration power has been improved with the emergence of services such as YouTube and Google Video, which all use Flash to display Video streams.
Flash Player is only one end of the balance. To play a role, Flash Player also needs a Flash animation. This type of animation is usually a file compiled using a Flash development tool. Its file extension is. 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 php code to construct the operation 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. This will replace the entire content area of the Web server with the Flash animation. This method is easy to debug, but the main usage is to embed an animation into an HTML Web page. Marking. TheTag and then reference the SWF animation through the URL.The advantage of this method is that you can place an animation anywhere on the page and dynamically control it through the Javascr transform pt code, just like processing any other elements on the page.
Listing 1 shows a reference to SWF animation.Tag example.
Listing 1. Embedded Flash animation
Codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab #
Version = 6, 0, 40, 0"
WIDTH = "550" HEIGHT = "400">
TYPE = "application/x-shockwave-flash"
PLUGINSPAGE = "http://www.macromedia.com/go/getflashplayer">
This group of tags references an animation named lines.swf.