下载

0下载券

加入VIP
  • 专属下载特权
  • 现金文档折扣购买
  • VIP免费专区
  • 千万文档免费下载

上传资料

关闭

关闭

关闭

封号提示

内容

首页 播放器控制与网页连接以及动画发布输出、loadVariables命令、影片剪辑的深度、文本框(P…

播放器控制与网页连接以及动画发布输出、loadVariables命令、影片剪辑的深度、文本框(Player control and web connection, and animation release output, loadVariables command, depth of film editing, text box).doc

播放器控制与网页连接以及动画发布输出、loadVariable…

周天静
2017-10-24 0人阅读 举报 0 0 0 暂无简介

简介:本文档为《播放器控制与网页连接以及动画发布输出、loadVariables命令、影片剪辑的深度、文本框(Player control and web connection, and animation release output, loadVariables command, depth of film editing, text box)doc》,可适用于IT/计算机领域

播放器控制与网页连接以及动画发布输出、loadVariables命令、影片剪辑的深度、文本框(Playercontrolandwebconnection,andanimationreleaseoutput,loadVariablescommand,depthoffilmediting,textbox)播放器控制与网页连接以及动画发布输出、loadVariables命令、影片剪辑的深度、文本框(Playercontrolandwebconnection,andanimationreleaseoutput,loadVariablescommand,depthoffilmediting,textbox),FLASHscriptplayercontrolandwebconnection,andanimationreleaseoutput,loadVariablescommand,thedepthoffilmediting,textboxtwentyfive,playercontrolandwebconnection,andanimationreleaseoutputFscommandcommandThefscommandcommandisaverypowerfulbrowserandwebactioncommandItallowsFLASHmoviestocommunicatewithFLASHplayersorprogramsthatcarryFLASHplayersYoucanalsopassmessagestootherapplications(suchasVB,C,etc),andthesyntaxisasfollows:Fscommand(command:String,parameters:String):VoidThefscommandcommandcontainstwoparameters,namelycommandandparameters,eachwiththefollowingmeanings:"Command:String"isastringpassedtothehostapplicationforanypurpose,oracommandpassedtotheFLASHplayer"Parameters:String"isastringpassedtothehostapplicationforanypurpose,oravaluepassedtotheFLASHplayerIfyouwanttosendmessagestoanindependentplayer,youneedtousesixcommandsandparametersbuiltintothesystemThesesixcommandsandparameterscanbeselectedwhenusingthescripthelpertoaddthefscommandcommandSixinstructionsandparametersofthesystemarespecifiedasfollows:CommandparametersdescriptionWhenfullscreen,true,orfalseopenFLASHanimation,doyouwantfullscreenplayback,andtrueshowsfullscreenplaybackDoesallowscale,true,orfalseallowuserstochangethesizeofanobjectinaFLASHfilewhilescalingtheanimationwindowTheshowmenu,true,orfalseselectionoffalsehidesboththesettingsandallrightclickmenusotherthanFlashPlayerTrapallkeys,true,orfalseissettotruetolockallkeyboardinputs,sothatnoneoftheshortcutkeysarevalidThepathoftheexecapplicationistransferredintoandexecutedtheapplication(Exe,Com,orBat)inanonFLASHplayerthatcanplayFLASHfilesQuitunrelatedtoplaytheFLASHfileplayerwindowAstotheusageoftheabovecommands,herearethesentences:Fscommand("fullscreen","true")openFLASHfileautomaticallyfullscreenplaybackFscommand("allowscale","true")allowzoominandoutoftheobjectintheFLASHfileFscommand("showmenu","false")hidethemainFLASHrightclickmenuFscommand("trapallkeys","true")keyboardinputisnotvalidforaFLASHplayerFscommand("exec","C:WINDOWSsystemcalcexe")callapplicationcalculator"Fscommand("quit")FLASHplayerwindowclosedThereleaseofFLASHanimation,releasesettingsOutputvideofiles,outputimagefileTwentysix,loadVariablescommandALoadMoviecommandTheloadMoviecommandloadsanexternalSWFanimationorpicturefileintotheFLASHmovieLoadMoviecommandsyntaxformat:LoadMovie(url:String,target:ObjectString,method:String):VoidThiscommandcontainsthreearguments:URL,target,methodUrl:StringthepathtotheSWFfileorpicturefilethatyouwanttoloadTarget:ObjectStringreferencetothecliporstringofthetargetmovieclippathMethod:StringspecifiestheHTTPmethodusedtosendvariables,whichmustbeinstringGETorPOSTIfnovariablesaretobesent,JustomitthisparameterTheGETmethodisusedtosendasmallnumberofvariables,andthePOSTmethodisusedtosendvariablesinlongstringsloadvideoswithloadMovieWecanloadtheexternalSWFfileusingtheloadMoviecommandLoadMovie("swf",rootmc)loadpictureswithloadMovieLoadMovie("jpg",rootmc)TwoLoadVariablescommandUsingtheloadVariablescommand,youcanreaddatafromanexternalfileandsetthevaluesofvariablesintheclip,suchassettingthevariablesofthedynamictextboxinthemovieclipExternalfilescanbefilesgeneratedbyscriptssuchasASP,JSP,PHP,etcLoadVariables(url:String,target:Object,method:String):VoidThiscommandcontainsthreearguments:URL,target,methodUrl:Stringloadstheabsolutepathtothelocationofthevariable,ortherelativeURLTarget:ObjectpointstothetargetpathofthemovieclipthatreceivestheloadedvariablesMethod:StringspecifiestheHTTPmethodusedtosendvariables,whichmustbeinstringGETorPOSTIftherearenovariablestobesent,omitthisparameterTheGETmethodisusedtosendasmallnumberofvariables,andthePOSTmethodisusedtosendvariablesinlongstringsLoadVariables("aatxt",rootmc)ThreeLoadVariablesNumcommandUsingtheloadVariablesNumcommand,youcanreaddatafromanexternalfile,andyoucansetthevaluesofvariablesintheplayer'slevelLoadVariablesNum(url:String,level:Number,method:String):VoidWherelevelisanintegerusedtospecifythelevelofFLASHplayerstoreceivethesevariablesVaR,Tu=jpg','jpg','jpg','jpg'VarI=Function,show(){rootcreateEmptyMovieClip("pic",)rootpicloadMovie(TU)rootpicalpha=rootpicxscale=rootpicyscale=II=rootonEnterFrame=function(){rootpicalpha=rootpicxscale=rootpicyscale=If(rootpicalpha>=){DeleterootonEnterFrame}}}OnMouseDown=function(){Show()}Twentyseven,thedepthoffilmeditinggetDepthmethodThegetDepthmethodreturnsthedepthvalueofthemovieclipinstanceMc,getDepth()MCistheinstancenameofthemovieclip,andgetDepthreturnsanintegerindicatingthedepthoftheclipgetInstanceAtDepthmethodWecanusethegetInstanceAtDepthmethodtoreturntheclipinstanceonthespecifieddepthHeretoseeifthespecifieddepthisalreadyoccupiedMcgetInstanceAtDepth(depth)MCisthescopetocheck,anddepthisanintegertocheckthespecifieddepthlevelinmcIfthereisnomovieclipinstanceatthisdepthThengobacktoundefinedgetNextHighestDepthmethodThegetNextHighestDepthmethodcanreturnthenextavailablemaximumdepthvalueMc,getNextHighestDepth()ReturnsanintegerRepresentsthemaximumdepthvalueavailabledepthexchangeoffilmeditingIfyouwanttomoveacliptothefrontorbackofanotherclip,youcanusetheswapDepthsmethodtoexchangethedepthofthetwoclipsMcswapDepths(depthtarget)MCreferstotheinstancenametoexchangedepthwithotherinstances,iftheinstancenameisdepth,ThatmeansMCanddeptharetheinstanceexchangedepthondepthIftheparameteristarget,itmeansthatMCexchangesthedepthoftheinstancetargetNum=thenumberofloadingpicturesA=pictureasthecenteroftheXaxisellipticalmotionB=pictureasthecenteroftheYaxisellipticalmotionRX=pictureastheradiusoftheXaxisellipticalmotionRy=pictureastheradiusoftheYaxisellipticalmotionN=usedtocalculatethevelocityoftheanglevalueAngle=usedtocalculatethevelocityoftheradianvalueSpeed=calculationpictureresponsespeedincrementalmousemovementFor(i=i<=numi){fromthelibrarywillidentifierMCadditionalcomponentstothestagerootattachMovie("MC","MC","i","I")}If(xmouse>xmouse<ymouse>ymouse<){Speed=(xmouse)*N=speed}else{N=(n<)n:}For(i=i<=numi){Angle=(i*numn)*MathPIroot"MC",ix=arx*Mathcos(angle)root"MC",iy=bry*Mathsin(angle)root"MC",ixscale=*Mathsin(angle)root"MC",iyscale=*Mathsin(angle)If(root,MC,iy>){root"MC",iswapDepths(i)}else{root"MC",iswapDepths(i)}root"MC",igotoAndStop(I)}GotoAndPlay()Twentyeight,textboxtypeoftextboxdynamictextboxentertextboxThefirstframeofthemovieclip:Textarea=textshowsubstring(,index)""IndexIf(index>textshowlength)Stop()GotoAndPlay(Mathceil(Mathrandom())*)GotoAndPlay()Thescriptonthemovieclipscreen:OnClipEvent(load){Textshow=newStringTextshow="pleaseentertextinthelowerarea"Index=}Ontheplaybutton:On(press){Screentextshow=textinputScreenindex=ScreengotoAndPlay()}

用户评价(0)

关闭

新课改视野下建构高中语文教学实验成果报告(32KB)

抱歉,积分不足下载失败,请稍后再试!

提示

试读已结束,如需要继续阅读或者下载,敬请购买!

评分:

/10

VIP

在线
客服

免费
邮箱

爱问共享资料服务号

扫描关注领取更多福利