HTML 应用程序的原理是由客户端发出请求,并从服务器端得到反应。与之不相同的是,Flex 应用程序是基于事件的/event-based。举个例子,当用户单击一个按钮时,便会触发一个事件。应用程序本身,不是指服务器,包含了识别事件的逻辑并采取相应的行动。当事件被触发时修改组件的属性对某个组件以编程方式进行操作时,为了对某个事件作出反应,必须..
Flex 是一个提供开发设计和运行支持的架构,它可以使开发人员创建利用Adobe?Flash? Player 9 作为前台的“富客户端互联网应用程序/rich Internet applications/RIA”,以满足用户更为直观和极具交互性的在线体验。开发 Flex 应用程序的典型步骤如下(通常是这样):1. 选取一系列预先定制好的、用于设计应用程序界面的组件(如表格、按钮等等..
PageReleaser需要一种HTML的压缩算法,Google了很久,发现如果只是简单去除空白和注释的话,使用XLinq就可以轻易的实现先看看MSDN是怎么说的:一种常用方案是读取缩进的 XML,在内存中创建一个没有任何空白文本节点(即不保留空白)的 XML 树,对该 XML 执行某些操作,然后保存带缩进的 XML。在序列化带格式的 XML 时,只保留 XML 树中有意义的空..
来源:https://developer.mozilla.org/en/Drawing_Graphics_with_CanvasMost of this content (but not the documentation on drawWindow) has been rolled into the more expansive Canvas tutorial, this page should probably be redirected there as it's now redundant.IntroductionWith Firefox 1.5, Firefox includes a new HTML element..
来源:https://developer.mozilla.org/en/Canvas_tutorial/Basic_animationsSince we're using script to control canvas elements it's also very easy to make (interactive) animations. Unfortunately the canvas element was never designed to be used in this way (unlike Flash) so there are limitations.Probably the biggest limitat..
来源:https://developer.mozilla.org/en/Canvas_tutorial/CompositingIn all of our previous examples, shapes were always drawn one on top of the other. This is more than adequate for most situations. This, for instance, limits in what order composite shapes are built up. We can however change this behaviour by setting the..
来源:https://developer.mozilla.org/en/Canvas_tutorial%3aTransformationsSaving and restoring stateBefore we look at the transformation methods, I'll introduce two other methods which are indispensable once you start generating ever more complex drawings.save()restore()The canvas save and restore methods are used to sav..