How to develop an ASP-based online image browser for FLASH MX
Source: Internet
Author: User
Flash mx (FLASH 6) debut, and gave the FLASH guests a reason to faint, because her new face made us excited.
I. Start with the new functions of MX.
After entering the MX development interface, click "Help => Samples" in the menu bar to open a webpage. The Samples in the leaves let us feel the new functions of MX. Click the link "Feature highlight: Load images" in the leaves. In this animation, we see five pictures of marine creatures (Lu Renjia: how is it ?), Different from the past, these five images are not compiled together with the swf file (Passerby B: It must be the external swf of "loadMovie", which is rare to see ), it is not the external swf called, but the 5 External jpg image files of "loadMovie. It was because MX expanded the "loadMovie" command that I was lucky to write this tutorial ^_^.
With the online help of MX, you can find out the detailed description of MX on "loadMovie, the first sentence in the "Parameters" section is "url The absolute or relative URL of the SWF file or JPEG file to be loaded. "loadMovie" can not only load external swf, but also load external jpg image files. Today, jpg images are widely used on the internet. This is an excellent message.
Let's take a look at MX's Description of This "marine creature" animation example: "This sample demonstrates how you can load images from a drive or server into a movie at runtime. there are no images in the library of the source file for this sample. "Yes, this" marine biological "image browser" loadMovie "is a local" drive "jpg image, and the jpg image file name list has been defined in advance.
This produces a small problem: if there is a "daliang.jpg" file in the defined file name list, but one day, this file disappears unfortunately in "drive or server, when I try again "loadMovie", what should I do ?! :~ (Don't Cry. Let's work together :)
(Passers-by pie: if every "loadMovie" time, you can dynamically generate a list of current file names, and everything will be fine. highlight: Yes. Every time an animation is run, the current jpg image file name list can be dynamically generated to solve the above problem.
However, it is not easy to dynamically generate a file name list in the local "drive". However, we can also learn from the Description of this "marine creature" animation: MX's "loadMovie" can also dynamically load images from the server to a "Movie Chip. Therefore, we will think that using some "server" language, we can easily dynamically generate a jpg image file name list for "server.
II. Conception
To sum up, we know that this MX image browser will run on the network, in addition, there must be a background program on the "server" side that provides dynamic generation of "server" end jpg image file name list. These jpg image files must also be placed on the "server" side.
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