Echo uses pure JavaCodeGenerate the browser HTML interface and respond to Customer Events.
Due to some inherent features of HTML, the interface is as beautiful as flash.
So is Echo's server side event mechanism + flash a good combination?
Let's take a look at flash:
The development language actionscript2 supports object-oriented.
Components:
Flash MX comes with components.
Enflash http://www.asual.com/enflash/
Iiley development in aswing http://www.aswing.org
Development tools: there is still a huge gap between eclipse + ASDT + mtasc + flahout and jdt
Flash itself works better, but the example with a little more complexity is slow. Later flash versions and new components should be better able to perform well.
The as2 language is similar to JavaScript and belongs to a weak type language. It can be programmed with a strong type similar to Java. In some cases, it is not very good.
Currently, IDE does not expect to refactor any advanced applications. Flash MX's development tools are even more difficult to use.
Currently, two tools can be used to parse SWF to facilitate understanding of SwF structure and mtasc mechanism.
Http://www.nowrap.de/flasm
Action Script Viewer
Flash should be used for client performance. The remaining problem is communication with Echo.
The echo2 release has three jars: APP/webcontainer/webrder. It can be seen from the literal that the author wants to separate presentation and rendering. We can also see from the echo Forum that the author has made these plans. However, no similar tools are available.
According to the research in the past two days, there are two ways to remotely control the changes of FLASH:
1. XML, access the server using as2 itself, and execute the returned XML parsing to the client.
The advantage of this method is that the server side is more common and even unrelated to flash. The disadvantage is that flash is under greater pressure. It is still unclear how to apply Flash (dynamic generation?) if a new control is added to the server ?)
2. SWF. Remotely load SWF.
This is what the Agent Mulder has pointed out, and someone has suggested it in mm. The server generates the as2 script for controlling the client and compiles it into SWF, which is loaded and executed by flash.
The preliminary test results are feasible. Their _ root is common, and simple control creation and attribute modification are feasible. Worried: Are there any security restrictions on the actual operation?
A small problem is the compilation process of as2. Mtasc can be compiled, but it is an external exe. In addition, the compiled SWF automatically packs related as files. In fact, it already exists in the main flash and is somewhat bloated. The authors promise to enhance the exclude of packagelevel in the next version, so it should be able to lose several hundred bytes.
The Java-based compilation tool has not been seen yet. It should not be a problem.
There may be other better solutions. Thank you!
Now I want to study echo2. The structure is much clearer than echo1.
I have limited time and energy, and I am very familiar with flash. You are welcome to join us ~~