Flash 5 ActionScript交互动画简明教程(上).doc_第1页
Flash 5 ActionScript交互动画简明教程(上).doc_第2页
Flash 5 ActionScript交互动画简明教程(上).doc_第3页
Flash 5 ActionScript交互动画简明教程(上).doc_第4页
Flash 5 ActionScript交互动画简明教程(上).doc_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Flash 5 ActionScript2001 60ActionScriptFlash 5FlashFlashFlashActionScript#1 Flash 5 ActionScript ActionScript 1. Flash 56 1Stringname = 2Numbersize = 100 3Booleanrainning = true 4ObjectmyDate = new Date 5Movieclip myClip = FishMovieclip 6Undefined Flash true falseFlashFlashforFOR BOOKa2firstName_YPOSITIONifforvar3Wgb%c set= = ; set ; A1 = 20; setA120; A120set var var ; var = ; var K; var book = ActionScript; 2. Flash 5 1 ActionScript Name = Ted; 2 sum = 300+200; I = I+1; 3 truefalseActionScript truefalse10passwordtrue onClipEvententerFrame if password = true play; 4 Flashchinaguangxinanningguangxiguangxichina china.guangxi.nanning 5 Flas myClip.startDragtrue; Flash 5 1. +-*/% FlashActionScriptFlash y = 12 - 6; /y = 6 y = 05 * 6; /y = 30 2. truefalse=!= 3. truefalseActionScript&|! truetruefalsefalsetruetruefalsefalsetruefalsefalsetrue 4. 32Flash ActionScript &|0 5. ActionScript 60090404a 6. FlashFlash4 3 + x * 6 year + + month + day + ActionScript ActionScriptActionScript 1. ActionScript. myDate.getDate;/myDategetDate _Xposition = tmpBomb._x /tmpBomb._xtmpBomb_X fish.play; /fishplay fish.color = red /fish _root_parent_root_rootfishplay _root.fish.play; Flash 5_parent_parentdoganimaldoganimal _parent.stop; 2. ActionScript on release myDate = new Date; currentMonth = myDate.getMonth; 3. ActionScript;Flash 4. function myFunction name age reader myFunction Steve 10 true; ActionScriptActionScript 5. ActionScriptActionScript cat.hilite = true; CAT.hilite = true; ActionScript 6. / 7. ActionScriptActionScript 60090404b 1. FlashifIfif 1 ifcondition statements; conditionstatements if X0 fish.play; x0x0truefish.playx0false 2 ifcondition statement1; else statement2; ifstatement1statement2 if year%4 = 0 & year%1000 | year%400 = 0 leap = year+; else leap = year+; year4100400ifleap = year+elseleap = year+ 2. 1while while Flashwhile: whilecondition statements; do statements; while condition; whiletruefalsewhilefalse 2for forFlashfor For forinit; condition; next statement; initconditionnext110 var s = 0; for I=1; I1010ISS=1+2+10 Forwhile 3forin Flash 5Forin Forin forvariableiterant in object statements; variableiterantobject Forin1122Forin Flash 5FlashFlash 5function 1. 1int intvalue k1=int2.3 value 2number numberexpression N1=number2001 expression 3random 0 randomvalue b=random10 value0 4isFinite isFiniteexpression f=isFinite13/5e-1000000 expression 5isNaN isNaNexpression b=isNaN2001 expression 6parseFloat parseFloatstring x=parseFloat2001920 string 7parseInt parseIntexpression radix b=parseInt3.5 expressionradix2-36 8string stringexpression c=string12345 expression 9eval evalexpression x = evala /a expression 10getProperty getPropertyinstancename property manX = getProperty_root.man _x instancenameproperty 11getTimer getTimer T1=getTimer 12getVersion Flash getVersion version=getVersion 2. Flash 5 ActionScriptFlash 5 ActionScript 1 _alpha Alpha fly._alpha= 80 0-1000100 2 _height_width px fish._height = 100 _height_width 3 _name fish._name = bigfish _name 4 _rotation _rotation = random360 5 _visible plane._visible = false truefalsefalse 6 _x_y xy spider_x = _root.web.spider._x 0000 7 _xscale_yscale _root.web.spider._yscale = 200 _xscale_yscale_xscale_yscale1000 8 _currentframe cf = _root.myInstance._currentframe 9 _url URL movieclipurl = _root.web.spider._url

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论