WEB 2.0 introduces Rich Internet application. But what is the meaning of Rich Internet application? Typically, it means adding highly responsive transaction operations to your application. Specifically, it means that you can instantly change widgets, Web forms, and reports on a page without retrieving new pages from the server.
One way to build Rich Internet application (RIA) is to use dynamic HTML, which is Ajax, javascrīpt, cascading style sheets (cascading style Sheet , CSS) and an HTML combination (see Resources). But DHTML is not the only way to add an interactive action to a WEB application. Another important approach is to use Adobe Flash Player to add interactivity to a Web site for ten years.
The first version of Flash was used to create animated pictures, and the latest version of Flash already hosts a complete interface that can be used to control WEB service access and use ECMASCRĪPT (the official version of JAVASCRĪPT) to provide complete scripting support.
Learn about Flash
Flash Player is a plug-in that is integrated into a Web browser that runs microsoft®windows®, Mac OS X, and linux® computers. By the time this article was finalized, the latest version of Flash Player was V8. It is available for free, and most browsers have this plugin installed. It is very popular and has excellent client penetration-and this penetration has been enhanced with services such as YouTube and Google video, which use Flash to display streaming videos.
Flash Player is just one end of the scale. To play a role, Flash Player also needs to use a flash animation. This type of animation is usually a file compiled using a Flash development tool with a. swf file name extension. But as you'll see in this article, you can also use the Ming library to dynamically build a. swf file in the same way that you create pictures dynamically, and draw graphics on the Web server. The Ming Library builds the operation code in the new. swf file with objects and methods built by the PHP code.
You can view a. swf file in a Web site in either of two ways. The first method simply navigates to the URL of the. swf file. Doing so replaces the entire content area of the Web server with Flash animations. This method is easy to debug, but the main use is to embed animations in the <object> tag of an HTML Web page. The <object> tag then references the SWF animation through the URL. The advantage of the <object> method is that you can place the animation anywhere on the page and dynamically control it by javascrīpt code, just as you would any other element in the page.
Listing 1 shows an example of a <object> tag that references a SWF animation.
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