Recently, it seems not too busy, idle down when they always think about flex and asp.net all aspects of the fittest, and always want to use flex to develop a performance, security and appearance are good blog system. But recently encountered unprecedented difficulties, let me really a bit do not know how to do it, compared to ASP.net, I think it is a bit uncomfortable.
First, in terms of security, there seems to be too much problem. In particular, the deeper the more people have a headache, if you want to use WebService words, the middle inevitably produces some people can not avoid the problem, such as: Permission issues, username and password issues. Generally speaking, I personally prefer to use webservice because of its universality. However, if you call WebService inside Mxml, and you want to perform a command like delete or INSERT, any user in the world can see such a webservice corresponding opration. Because the source code of Mxml is open. So in terms of security, it forces us to give up such a background operation. (Funny thing: I think of flex to display the page, and then use asp.net to manipulate the background database). At the same time Sharedobject is also not safe, because the display on this machine, any one of the written sharedobject can be artificially input, so that people feel too uneasy, for the intelligent person, the reverse thinking of the most love to do one thing.
Second, in the data display, the more useful is the DataGrid, but such a DataGrid is far from satisfying our application needs. Take a very simple example: you want to show the form as the homepage of this site. The DataGrid seems to be a pale line, and in Mxml's core pakeage, I find repeater such a class. So I spent all my time trying to make good use of what was inside, but it seemed to be more complicated than my ability. It also seems to have to be used in conjunction with two components such as panel and tile. It's strange that In Beta1.0 and Beta2.0 I can also see repeater such a visual component in components, the result wants to study in the Beta3.0 time, but cannot find, so can only use the code, but with the code but not get very good visualization effect, in data binding aspect is to let a person headache 。 Now the feeling of ASP.net DataList and Repeater is cordial.
Third, if a site is not only a few pages, but many pages, then such a mxml project will be very bad, because in a project can only have a mxml file (this is recommended by Adobe). So we have to use more state to show, and this will undoubtedly increase the complexity of the code, in terms of readability will be greatly compromised. At the same time will inevitably increase the final rendering output SWF file, then the download will be a big problem.
Four, in the code separation aspect. Although you can customize the CSS file, but this definition of CSS file can not be dynamically displayed in the Mxml file, this is annoying. There is no good way to edit CSS files, much less Dreamweaver CSS editing methods. Also in ActionScript, this should be a bright spot, but for people who do not understand what is object-oriented, it seems very difficult. Flex Although easy to get started, but the real grasp of the event handling method is very procedural, from the real sense is not easy to grasp. In addition, I found that the string in the returned XML object contains the HTML tags of <p><br> and so on, and there is no workaround in the DataGrid and some other controls.
The appearance shows that this is not only a big bright spot of it, but also a big bad place for it. The good thing is that we don't need too much effort to make a good effect; the downside is that even if we do a good job, it's not going to make a good result. At the same time, Flash seems to integrate with Flex is not too good, how to do good in Flash in the application of the flex is also a research issue.
To sum up, although Flex just born to give people one after another surprise, but want to let more people participate in, is not very easy one thing. Here I have to say that the flex hype is a bit fierce, just like Ajax, people start to see the simple side, but for the deep point of things do not understand, for language research is not limited to ActionScript, I think it is best to learn more advanced language, In this way to better understand the long and short, and not blind to the herd. Of course, Flex is still growing, still improving, I still believe in its future. Also believe that Adobe will not be negative Macromedia Hope, will eventually create another miracle.