Flash and ASP.NET

xiaoxiao2021-03-06  70

It's okay a few days ago, revisiting the previous favorite Flash. I saw the three new strategies of MicroMedia on the Internet. MicroMedia has begun to indicate the steering of their strategic intent, and wants to have a place in mobile communications, online teaching and even server software. For Micromedia's Breeza, Flex, and ColdFusion I am just smelling his voice, but in use Flash MX. After 2004, I couldn't help but ask several questions.

What can Flash do? Do we need ASP.NET? Do we need IE?

What can Flash do? Open Flash MX 2004, you can see some familiar components: DataSet, DataGrid, Datafield, and XMLConnector, WebServiceConnector, etc. These components allow us to quickly build an interface to display information to users. In this case, can our Web site re-planned, use a new way to show content? Create a flash, run it, then send an instruction of an XML format to the server, as shown below execution query Select query User Article ON User.id = Article.Userid < / Query Data Sheet> UserName Title Content DateAndTime Other Article.Id = 1 2 DateandTime Desc < The / Request> The server receives this command, so running a query, returns an XML data page, Flash receives data, displayed on the client. Is this a bit trouble? No, if we encapsulate this way to the server into a flash component, let the flash maker can easily convert some operations into instructions sent to the server, which is not difficult. What is the server do? The server only needs to perform a query, or perform some function commands, output binary stream to the network, or return some information. If the interaction between the server-side and flash is specified, there is a mode, then the server's components can be fixed, which can be reused, can be shared. Is this different? Of course, we can simply see the Web website as a three-layer, the operation layer of the database, perform some features, format the performance layer of the page. Then, the server now only needs to complete the operation of the database and some basic functions, and the expression is completely available in Flash. If this looks trouble, we can use Flash to expand components, making many easy-to-use components. Let the code can be reused, everything will become simple. If you still feel trouble, we can let the server switches some of the content with XSL before output, and then put the HTML content in an XML element. Flash can be displayed with the HTMLText property of a text box. OK, we can do this, this is not difficult, the question is, if we do this, then

What do we need for ASP.NET What is the big substance? It may be ridiculous here, and I don't dare to say this. However, let us imagine, if we really use flash to build a website as described above. What kind of server do we need? A smaller server, does not need to interpret the irregular script, just perform some features, then let the client's flash call, and return the normalized data. A faster server, since the ASP.NET component made, can be reused, can be cured, so it will be faster.

A more secure server, we can better control the server, no need to let a space user written some programs that can not be expected on the server.

A server that can describe the specification, after the server receives the flash command, how to output it, should it output in what format? We can provide some descriptive instructions that allow the user to create a function as the same functionality like the memory query in MS SQL, and is called for users. Of course, you can say why we need Flash? ASP.NET template can do better. But can ASP.NET have a combination of moving and quietness like Flash? ASP.NET can effectively effectively and real-time control data after data output? Flash has been deeply rooted, but SVG and VML are still there. Perhaps Flash makes some troubles, but those flash have flashed in the original version of Flash, who can say that they will not do better?

I don't want to argue if the Flash website is popular (establishing a FLASH full station is completely possible), I just want to make a guess, in fact, in the new strategy of MicroMedia, it is already aware of these intentions, the problem is just, this will bring What is it?

What will this bring? Yes, once the server-side instructions can be standardized, cured, simplified, then our ASP.NET and ASP programmers will no longer need to stand on the server to write some code, send data to the client, and after sending Just like a bottle in the sea, no one knows what it will become. Thus, the future belongs to the Flash component programmer, they send instructions to the server, requiring data. These data are then processed, exhibited in vivid, dynamic forms. We no longer stand on the server, we are customers, the Web site is no longer a plurality of piles that use the link line string, which will become a whole like a Windows application. Most, we use LoadMovies to read several subroutines from the server (SWF file). And all text content, pictures, sounds, and media can be used as simple data. OK, then you have the next question.

Do we need IE?

What will the new Flash bring to us? Imagine a paragraph of QQ dialogue.

Short song: Chang Ge, I like "Lao Kang Blue House" website, which is? I hate songs: You have the Flash of the "China Website Daquan" website, open it, and search it in it, it is very famous, you can download it immediately. Short singing: Oh, thank you, how can I have this website that "pure and beautiful girl" does not work? I hate songs: That site is a bit color, the previous server is sealed, you download a new version to BT, you can control the server IP address, I can tell you the latest server IP. Short song: Wow, great, I will download it. Interesting, what will this be a website? A flash is an entrance to a website. Is it an application or a home page? Do we need a domain name? Why do we have to tell others, we are taking data from www.9cbs.net? Why not take data directly to 61.186.252.133, anyway, users just remember 9cbs.swf this top-top website. We can distribute this Flash, BT download, FlashGet download, allowing users to get in any form. We can control flash to read data, a server fails, let the client's Flash take the data to take the data, do not include anything "Please forgive, our server has failed, temporarily stopped, please visit Announcement of the following address ". Oh, I think too far, the World Wide Web is not so easy to break, but the method has changed, and the network mode will also change. If you have a Flash website, do we have to play Flash to play in an IE? Of course, there is a problem. If I want to see "Lao Kang. SWF" when browsing "Lao Kang Blue House .swf", I should turn off "Lao Kang Blue House", and then open "pure beauty girl" "? That's too much trouble, don't we access another website like a link in IE?

Yes, we will make a flash player, put the website flash in this player, and receive the instruction, jump to another website when the link is OK. However, as long as this player is doing it, it is difficult to spread, it is difficult to standardize, and it is difficult to form a standard. Perhaps Breeza can do it, but I have never used BREEZA, so I don't know what it will be. I just want to imagine that such a player we need, what should it do.

What information should I provide some information in a link in FLASH? Website name, website Flash's priority request location, which will be an IP or an URL, or it will be an index ID value in a giant server database. We can also ask a flash website to provide a similar COM component. Uniquely identifies. In this case, our Flash player can find the website of We need based on this information.

Why do you need a unique identifier? Suppose we can't find this website flash in the optimal location location, then we can announce a query announcement similar to BT to the Internet to see which online users' computer, if allowable, received, Let us share. And our Flash's player is responsible for publishing an announcement, or listens to the announcement, some servers on the Internet are responsible for verifying the identity. There is another point, once this is a logo, then the organization responsible for distributing the identification will inevitably be greatly attracted, is this institution charge? Is this agency only distribute the identity for those named websites, and charge the fees? Oh, I think too far. Speaking of this, many friends will definitely think that my imagination is too rich, but unrealistic, asp.net is an aviation carrier, IE is an older, how to throw it.

I admit that they have many unclear advantages, I don't think it will abandon them, but why we have to stop imagination, why we can't imagine a new Internet mode, China's procedure How many years have written many codes, which is always written in the specification written by others. Why can't we boldly, seize some new things, build a set of our regulations, our standards. Let us say every sentence be the standard of others? OK, we want this, then what do we have to do?

As mentioned earlier, such a website flash requires a functional module provided by the server, requires some excellent Flash components, we can build it, publish it, share it, even open source, let many people use it, piracy it . As long as these things are excellent, expandable, long-term future, those who use more, we can establish a standard, a flash proposes a function call to the server, request information data. What language to make a server-side component is not important, and the component procedures made are not important. It is important to standard, expandable standards. Once the industry standard is constructed, we have said it will be calculated.

Perhaps it is difficult, perhaps there are many other things that can be done, and these work cannot rely on a batch of enthusiasts, the admirers of open source code are completed, but also need a powerful business to support. But I don't want to tell others what to do, but I want to make some my own ideas, my knowledge is not very wide. If there is anything wrong, please refer to it.

My email is hjdgx@163.com, welcome to contact.

转载请注明原文地址:https://www.9cbs.com/read-87385.html

New Post(0)