




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Flash是美国Macromedia公司开发的用于矢量图形设计、动画制作的软件,主要特点有:使用矢量图形和流式播放技术。矢量图放大后并不失真,仍然保持原有的清晰度。流式播放技术使得动画可以边播放边下载,相对AVI、MPEG等格式的多媒体文件,体积又小很多,能快速地在Intranet或者Internet上播放。Internet Explort、Netscape等网页浏览器均采用集成了Flash插件直接播放Flash生成的 后缀为SWF的文件,不需要安装播放程序,通用性好。Flash与其他动画软件最大的不同那个是ActionScript。ActionScript基于面向对象的编程思想,采用以时间驱
2、动,以关键帧、按钮和电影片段符号为对象来定义和编写动作脚本。使用简单的脚本语句编程可以实现场景的跳转,与HEML网页的链接,动态装载SWF文件等等。例如通过按钮和一些基本语句go to and stop();go to and play();nextFrame();prevFrame()实现页面的跳转、节点的访问;使用按钮和go to and play(),stop()语句实现电影片段 的停止和播放。高级的脚本语句编程可以实现复杂的人机交互、游戏、在线商务系统等等,也包括仿真物理实验。下面谈谈仿真物理课件的制作。1动态课件的主界面HTML和ActionScript可实现在一个web玉面中多个对
3、象链接及动态交互功能。在采用框架页面的课件主界面中,包含实验原理、实验目的和仪器、实验内容 三个模块,对应三个模块制作具有互动功能的三个小窗口。当鼠标指向某个模块的互动功能小窗口时,显示其相应模块的主要内容,并配上辅助窗口加以说明。例如鼠标指向实验原理模块互动功能小窗口,页面显示实验原理图及子模块的链接,辅助窗口介绍主要原理。当鼠标指向另一模块的互动功能小窗口是,动态切换到另一模块的页面,从而实现方面迅速的浏览 整个实验的概况。2建立组件库经常使用的对象建成Symbol(组件),这样可以方便地重复使用同一个对象,加快动画播放速度,缩短动画下载时间,减少动画文件体积。组件类型有按钮 。电影片段及
4、图片。为保证仿真效果,实验仪器、元件等素材一般应 采用实物图像。将课件所要用到的素材添加到Windows/Library,建立组件库。3创建图层Flash可以创建多个图层 。每个图层像是透明的画布,将他们按一定的顺序叠放排列,从上往下看时,上层的对象啊会将下层的对象遮住,而透过上层的透明区可以看到下层的对象。把对象分层放置的优点是党在一个图层上绘制并编辑对象时,其它图层上的对象不会受到影响,因此可以利用多个图层来组织和安排影像中的文字、图像和动画等对象。原则上静止的部件放置在同一个图层,运动或者变化的部件放置在不同的图层上。4 编辑操作帧制作动画的过程表现为在“时间轴”的流程中安排不同的场景(
5、帧)。所谓的时间轴,就是一个以时间为基础的线性进度安排表 ,让设计者以时间的进行为基础,一步步的安排每一个动作。所谓帧是最通用的动画计量单位,设计者可以将不同的对象安排在时间轴内,让不同的对象或图层上的部件,有一个共同的时间标准。只要对准了同一帧,就可以保证所有的动作都会在同一时间发生。图一是迈克尔逊干涉仪光路原理图动画制作的操作帧编辑,左边表示有元件说明、光线和远见图三个图层 ,右边对应各图层 的帧在时间轴上的安排,按照不同的图层要求,讲相应的组件放置其上,其他帧的安排不同的内容。5添加动作脚本交互式动画在于设置指定时间发生时执行的动作(Action)。在时间轴上安置好各图层的目标对象后,打
6、开Action窗口为指定的不同时间设置动作脚本。简单的交互动作可以采用添加按钮的方式,对按钮进行编程来控制电影片段的动作。负责的人机交互,可以通过输入不同的数据来产生不同的动画,由输入文本(Input text)和脚本语句编程来进行控制。输入文本变量用来动态的接受用户输入数据,通过程序对变量的分析产生相应的动画。例如完全弹性碰撞演示实验,主要程序如下:Var m1,m2,v1,v2/两个物体的质量、速度变量X1=getproperty(“m1”,_x);X2=getproperty(“m2”,_x);If(Number(x)>=Number(x2)-50 & Number(m1)
7、=Number(m2)V1=0;V2=v1;If(Number(x1)>=Number(x2)-50 & Number(m1)>Number(m2)V1=(Number(v1)*(Number(m1)-Number(m2)/(Number(m2);V2=2*(Number(v1)*Number(m1)/(Number(m1)+Number(m2);If(Number(x1)>=Number(x2)-50 & Number(m1)<Number(m2)V1=(Number(v1)*(Number(m1)-Number(m2)/(Number(m2);V2=
8、2*(Number(v1)*Number(m1)/(Number(m1)+Number(m2);输入两个物体的质量值和第二个物体的初速度值,相应产生碰撞前后的物体运动的动画仿真。Flash软件具有强大的交互功能,进行脚本编程开发,能够仿真复杂的实验操作、实验现象等,可以起到预习物理实验提高现场实验成功和效率的目的。Flash软件制作的动画文件体积小,兼容性强 ,在Internet上 能够快速下载播放,满足网络教学的需要。Macromedia Flash is the United States developed for vector graphics design, animation so
9、ftware, main features are: use of vector graphics and streaming technologies. Distortion vector is not enlarged, still maintain the original definition. Streaming technology allows the animation to download while playing, the relative AVI, MPEG and other formats of multimedia files, and small lot si
10、ze, can quickly be played in the Intranet or Internet. Internet Explort, Netscape and other Web browser plug-ins are used to directly play integrated Flash-generated suffix Flash SWF files, no need to install player, common good. Flash animation software with other major difference is that ActionScr
11、ipt. ActionScript object-oriented programming-based thinking, using a time-driven, the key frame, button and movie clip symbols for the object to define and write action scripts. Programming using a simple script statement can jump scene, and HEML page links, dynamic loading SWF files and more. For
12、example, the buttons and some basic statements go to and stop (); go to and play (); nextFrame (); prevFrame () to achieve the jump page, the access node; use of buttons and go to and play (), stop () Statement to achieve stop and play movie clips. Advanced programming script statement can implement
13、 complex human-computer interaction, gaming, online business systems, etc., including simulation of physical experiments. Turning next to the physical simulation courseware production.1, the main interface of Dynamic CoursewareHTML and ActionScript can be achieved in a number of objects in the linke
14、d web page and dynamic interactive features. Courseware using the framework of the page in the main interface, including the experimental principle, experimental purposes, and equipment, contents of three modules, corresponding to the three modules with interactive features to create three small win
15、dows. When the mouse is pointing to a module of the interactive features of the small window, showing the main contents of the corresponding module, and coupled with secondary window to illustrate this. Principle modules such as a mouse pointing interactive features small window, the page displays e
16、xperimental schematics and links to sub modules, introduce the main principles of secondary window. When the mouse is pointing to another module of the interactive features of the small window, the dynamic page to switch to another module, in order to achieve the rapidly browse the profile of the en
17、tire experiment.2 Create component libraryFrequently used objects into Symbol (components), so you can easily reuse the same object, to speed up the animation playback speed, shorten the download time animation, animation files to reduce size. Component types button. Movie clips and pictures. To ens
18、ure the simulation results, laboratory equipment, components and other material should normally be in-kind images. To use the courseware to the material that added to the Windows / Library, established component library.3 Create Layer Flash can create multiple layers. Each layer like a transparent c
19、anvas, according to a certain order of their stacking order, from top-down view, the upper object ah object will cover the lower, and through the transparent areas can be seen the upper lower Objects. Advantage of the object hierarchy of the party placed in a draw and edit objects on layers, other l
20、ayers of the object will not be affected, so you can use layers to organize and arrange multiple images in the text, images and animations Other objects. In principle, stationary parts in the same layer, movement or change of parts in different layers.4 frame editingThe process of animation performa
21、nce in "Timeline, "the process of arranging different scenes (frames). Timeline of the so-called, is a linear time-based scheduling table, the time for designers to make the basis of the arrangement step by step, every movement. The so-called frame animation is the most common unit of meas
22、urement, the designer can arrange the different objects within the timeline, so that objects or layers of different components, there is a common time standard. Just aim for the same frame to ensure that all of the action will happen at the same time.Figure One Michelson interferometer optical schem
23、atic diagram of the operation frame animation editor, there are elements left that shows the three layers of light and vision plans, the right side of the frame corresponding to the layers on the timeline of the arrangement, according to different plans Level requirements, the corresponding componen
24、ts of stresses placed on it, other arrangements for different content frames.5 Add the action scriptInteractive animation is set to perform the specified time the action occurs (Action). Settle on the timeline of the target layer, open the Action window, with different time settings for the specifie
25、d action script.Simple actions can be used to add interactive mode button on the button to be programmed to control the action movie clips. Responsible for human-computer interaction, you can enter different data to produce different animations, from the input text (Input text) and the script statem
26、ents to be controlled programmatically. Dynamic input text variable is used to accept user input data, the analysis of variables through the process to produce the corresponding animation. For example, fully elastic collision demonstration, the main procedures are as follows:Var m1,m2,v1,v2/ Two objects of quality, speed variableX1=getproperty(“m1”,_x);X2=getproperty(“m2”,_x);If(Number(x)>=Number(x2)-50 & Number(m1)=Number(m2)V1=0;V2=v1;If(Number(
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 开闭所火灾事件应急预案(3篇)
- 行政法学历年真题试题及答案
- 电厂仓库火灾应急预案(3篇)
- 信息处理技术员考试准备要点及答案
- 火灾演练应急预案范例分析(3篇)
- 2025年计算机考试重点及试题及答案
- 2025年网络安全防护技术试题及答案
- 计算机科学技术基本概念试题及答案
- 软件设计师职业发展道路2025年试题及答案
- 计算网络安全管理考试试题及答案总结
- Rh分型及其临床意义
- 2024-2025学年数学沪科版七年级上册期末综合测试卷(四)(含答案)
- 2024年中考语文复习冲刺记叙文阅读(上海专用)(原卷版+解析版)
- 投资项目评估知到智慧树章节测试课后答案2024年秋中央财经大学
- X射线(RAY)上岗证考试试题及答案
- 人教版物理八年级下册第三次月考试卷及答案
- 游戏研发团队管理及创新激励机制设计
- 门市房转租合同
- 2024年度高速公路监控系统维护承包合同
- 北京市矢量地图-可改颜色
- 英语俚语课件教学课件
评论
0/150
提交评论