ImageVerifierCode 换一换
格式:DOCX , 页数:18 ,大小:27.04KB ,
资源ID:3282126      下载积分:12 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/3282126.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(director常见问题整理3.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

director常见问题整理3.docx

1、director常见问题整理3Q:*.dxr和*.dcr有什么区别?A:dcr主要用于网上的流媒体传输,类似于flash发布成swf,因此存在网络对其lingo功能的限制,如不能对本地硬盘文件的操作,访问受限等情况;dxr是加密的dir影片格式,不存在以上的约束,但文件格式要稍微大一些。具体用哪种格式就看你的需要了Q:请问如何在Director中调flash中某一桢的动画?A:goToFrame语法:sprite(whichFlashSprite).goToFrame(frameNumber)goToFrame(sprite whichFlashSprite, frameNumber)spri

2、te(whichFlashSprite).goToFrame(labelNameString)goToFrame(sprite whichFlashSprite, labelNameString)描述:命令;通过指定frameNumber参数来确定从第几帧来播放flash影片。你可以指定一个整数帧或通过字符串来指定一个标签名。使用goToFrame命令与设置flash影片的frame属性具有相同的效果。例如:这个处理程序可以在第5通道的flash影片中前往不同的点。它允许指定一个参数来确定前往哪一帧。on Navigate wheresprite(5).goToFrame(where)endF

3、lash元素运行时会占用99%左右的CPU资源,所以使用Flash的地方应尽量少。虽不能彻底解决(Macromedia Flash本身结构的问题),所以只能我们自己约束,不是非用不可就最好不用。2使用Flash的时候,动画的尺寸尽可能的小,可能的情况下,不要透底,并且可以将一个大的动画分为几个小的动画,速度也有明显的提升。3Flash有声音的时候,不妨把声音和动画分开导入D中,这样更易于控制和有效的减小Flash的大小。4Flash制作时应尽量不使用位图,尽量使用矢量图。5D中的声音文件,建议不使用有压缩性质的格式(.mp3、.rm等),最好使用.wav等标准格式。6建议使用Flash的loa

4、dMovie方法,载入外部的SWF文件,这样可以不用平铺多个Flash,也不用在各个Dir间跳转,可以节约很多启动时间。7Flash制作完成以后应删去库中多余的元素,以使Flash的大小降到最小。8不在程序中通篇使用一个或多个Flash,这样会使整个程序变得特别慢。做菜单有一个很好的插件,如果我们要大量用到这样的功能,建议够买。9视频不宜用高压缩比的视频格式,特别是片头,最好用无压缩格式的.avi或.mov格式。视频的个数也不宜太多。10 程序的可执行文件应尽可能的小,最好就是只有少部分的加载语句,通过这部分语句来调用其它的电影。11发布可执行文件时,除特别需要外,建议发布成ShockWave

5、的格式,这样可以满足可执行文件最小的要求。12程序应做到决不多加载一个无用的外部Xtra。可以采用删除法反复查找无用的Xtra。13程序的时间轴通道中应使用最少的精灵个数。因为通道被占得越满,舞台的变化就越复杂,电影运行速度也就越慢。14.素材建议采用外部链接的办法,本人的经验是同样的东西外部链接要比内部嵌入执行速度要快,尤其是声音文件。15程序中应尽少的使用占用CPU资源及内存的过渡效果。如3D类的过渡效果。且过渡的时间不宜太长,一般设置在0.30.6之间,最大也不应超过1.2。16图片的大小应保证在满足需求的情况下最少、最小。17在刻录CD-R时,关闭光盘的多重段刻录功能。否则往往使CD-

6、R在光驱中的读取变慢,因为选择让光盘的多重段刻录功能打开,刻录时不会关闭CD-R文件分配表等相关信息,以便你下次写入。而这样对于光驱在寻道、读取时速度减慢。你可能觉得有时没有明显的感觉,但当你刻录的CD-R中文件较多,相应的文件又较小,就会十分明显了。因此建议你在可以的情况下尽量选择关闭光盘,以方便光驱的读取。18刻录母盘应使用质量好一点的CD-R,且刻录速度不宜过快,一般816速最好,这样做容易读盘。19根据经验及实验得出以下的结论:造成D程序运行速度慢的主要原因就是:1.Flash元素;2.视频(特别是高压缩比的视频格式);3.过多的界面元素;4.大量占用资源和时间的过渡效果。20有效转移

7、用户视线的方法是采用Loading的方法。这在大量的软件中都得到广泛的应用,它可以有效的让用户觉得等待的时间不是太长,也不会让用户以为是死机。在D用可以采用两种不同的方式来制作:1动态,自己做一个“假的”;2静态,与执行文件同名的.bmp文件。Q:怎样修改field的背景颜色?A:按CTRL+T,弹出的对话框里就有。Q:请问在director中如何将某个角色复制到粘贴板上?A:应该是copytoclipboard(MEMBER(AAA)Q:怎样lingo控制不同的网页?A:on exitFrame mesprite(webxtra的通道号).navigate(the moviepath&htm

8、文件的名字)endQ:请问怎么修改Director系统面板的字体?A:用这个Q:请问怎样才能返回某个目录下的文件列表?A:1,buddapi.x32之FileList - 文件列表函数描述:函数baFileList用途:返回一个文件夹中的文件列表用法:Result(结果集)= baFileList( Folder, FileSpec )参数类型:String(字符型),StringFolder(文件夹):指代要被检索的文件夹名ilsSpec(特定文件):指代要被列出的文件类型返回值类型:List(列表,用于Xtra模式)或String(字符型,用于UCD模式)返回匹配文件的列表。如果文件夹不存

9、在,则返回一个空列表(或字符串)范例:在Director中:set Files = baFileList( c:windows, *.* )返回目录c:windows中所有的文件名称到文件列表变量Files中在Authorware中:Files := baFileList( c:temp, *.bmp )解释同上参见:baFolderList2,用遍历法也是个好主意on getallfileslist=i=1repeat while truefilename=getnthfilenameinfolder(x,i)if filename= then exit repeatlist.append(

10、filename)i=i+1end repeatendQ:请问过渡效果怎么使用在单个精灵上?A:1。查看dr的帮助文件puppettransition函数2。在使用libary中的行为直接可以套用在成员上注:所有的coverpushreveal特效都是对整体的去掉就行了另外,还得注意chunksize的大小,不能太大,他的大小有直接影响Q:如何在director 8將字符串轉成字符啊?A:chars(你的字符串,n,n)-n为位置。Q:如何判断光驱符号?A:用BUDAPIon startmoviedrivelist=baDiskList()TargetDiskName=九年级物理上repeat

11、 with disk in drivelistDiskType=baDiskInfo(disk, Type )if DiskType=cd-rom then alert diskend repeatendQ:怎样在Lingo中引用外部CAST库的角色?A:1,sprite(me.spritenum).member = member(castname, mycast)2,member(whichMember,whichCastlib)Q:如何利用语句调用不同的外部Cast中的演员?A:sprite(me.spriteNum).member = member(A01,NewCast)Q:常用声音L

12、ingo。A:channe1Count语法: the channe1Count of member whichCastMember用途: 此属性返回声音造型成员所使用的声音通道数。举例: put the channe1Count of member”Jazz”currentTime语法: the currentTime of sprite whichSprite用途: 此属性确定了声音或视频精灵当前正在播放的时间,以毫秒为单位。举例: set the text of member”time” to (the currentTime of sprite l0)/ 1O00multiSound语法

13、: the multiSound用途: 如果现在系统支持两个或两个以上的声音通道时,就返回TRUE。举例: if the multiSound then sound playFile 2,”Music”puppetSound语法: puppeiSound whichChanne1,”whichCastMember”puppetSound whichChanne1,0用途: 此命令用来播放声音造型成员或是停止播放造型成员。举例: puppetsound 1,”Wind”puppetSound 2,0sampleSize语法: the sampleSize of member whichCastm

14、ember用途: 此属性返回造型成员的采样大小,通常是8位或是16位。举例: set soundSize the sampleSize of member”Voice Over”SoundBuSy语法: soundBusy(whichChannel)用途: 此函数用来判断声音通道是否正在播放声音。举例: if soundBusy(1) then go to the framesoundEnab1ed语法: the soundEnab1ed用途: 此属性用来决定声音是否打开,如果为TRUE,就可以听到声音,如果为FALSE,虽然音量不变,但是却听不到声音。举例: set the soundEna

15、b1ed to TRUEsound Close语法: sound c1ose soundChannel用途: 用来关闭某个声音通道中的声音播放,最好是使用puppetSound命令来代替它。举例: sound c1ose lfadeln语法: sound fadeln whichChanne1, ticks用途: 以指定的ticks时间使声音通道中的声音渐强,如果没有指定ticks值,就以15*(60(Tempo seiiing)为时间,其中的Tempo setting为当前帧速度。举例: sound fadeIn 15 * 60fadeOut语法: sound fadeOut whichCh

16、anne1, ticks用途: 以指定的时阳j使声音通道中的声音渐弱。举例: sound fadeOut 15 * 60playFile语法: sound playFile whichChanne1, whichFile用途: 此命令用来播放外部AIFF和WAVE声音文件,如果声音文件和电影文件不在一个目录中,要为电影名加上全路径。举例: sound playFile 3, the pathName”Thunder”volume语法: the vo1ume of sound whichChannel用途: 此属性用来决定声音通道的音量大小,以0255之间的数值表示。0表示静音, 255表示音量

17、最大。举例: set the volume of sound 2 to l30bitRate语法: the bitRate of member whichCastmember用途: 此属性返回了下载的Shockwave Audio的波特率,以Kbps为单位。举例: put the bitRate of member”prima”bitsPerSample语法: the bitsPerSample of member”whichCastmember”用途: 此属性返回了转换到Shockwave Audio之前的声音的位数。举例: put the bitsPerSample of member”p

18、aul Robeson”percentStreamed语法: the percentStreamed of member”whichCastmember”用途: 此属性用来指示一个Shockwave Audio已经下载的百分比。举例: put the percentStreamed of member”Charles”percentPlayed语法: the percentPlayed of member”whichCastmember”用途: 此属性用来指示一个Shockwave Audio已经播放的百分比。举例: put the percentPlayed of member”Frank”

19、preloadBuffer语法: preLoadBuffer member”whichCastmember”用途: 此命令将一个Shockwave Audio预先加载到内存中。举例: preLoadBuffer (member”Torme”)preloadTime语法: preLoadTime of member whichCastmember用途: 此属性决定在电影播放之前使用流技术下载的Shockwave Audio的时间。举例: set the preLoadTime of member”Louis”=6soundChannel语法: the soundChanne1 of member

20、“whichCastmember”用途: 此属性决定了声音造型成员播放的声音通道。举例: set the soundChanne1 of member”Frank”to 3state语法: state of member”whichCastmember”用途: 此属性指示了Shockwave Audio的状态:0 停止1 正在下载2 下载完成3 正在播放4 暂停5 完成9 出现错误10 CPU资源不足举例:if the state of member”Ella Fiizgerald”:9 thenalert Sorry,this is an erroend if用途: 此属性指示了Shockw

21、ave Audio的状态:0 停止1 正在下载2 下载完成3 正在播放4 暂停5 完成9 出现错误10 CPU资源不足举例:if the state of member”Ella Fiizgerald”:9 thenalert Sorry,this is an erroend if常用精灵属性Lingoblend语法: the blend of sprite whichSprite用途: 此属性决定了精灵的混合百分比举例: set the blend of sprite 3 to 40bottom语法: the bottom of sprite whichSprite用途: 此属性决定了精灵矩

22、形边框的下部边缘的坐标值,这个属性可以用来测试但是不能直接修改举例: set lowest put the botiom ofsprite (i l)castLibNUm语法: the castLibNum of sprite whichSprite用途: 此属性决定了精灵所使用的造型成员的Cast表的编号,可以被测试和修改。如果更改此属性但是不修改castnum属性, Director会使用原来的造型成员编号在新的Cast表中为精灵寻找造型成员举例: set the castLibNum of sprite 3 to the number ofcastlib“Newcast”constrai

23、nH语法: constrainH(whichsprite, va1ue)用途: 此函数首先计算表达式va1ue的值,然后和精灵的左右矩形边缘坐标进行比较。如果表达式在精灵左右矩形边缘之间,就返回这个表达式;如果这个表达式小于精灵矩形边缘的左边的坐标值,就返回精灵矩形左边边缘的坐标值;如果表达式大于精灵矩形边缘右边的坐标值,就返回精灵矩形右边边缘的坐标值举例: put constrainH(1, 20)-30put constrainH(1,60)-60put constrainH(1,100)constrainV语法: constrainV(whichsprite, va1ue)用途: 和co

24、nstrainH类似,但是是和精灵矩形边枢的上下边缘进行比较。举例: set the locV of sprite l to constrainV(3,the mouseV)constraint语法: the constraint of sprite whichSprite用途: 此属性可以将一个精灵的移动范围限制在另一个精灵的矩形范围之内。举例: set the constraint of sprite l to 2cursor语法: the cursor of sprite用途: 此属性决定了鼠标在指定的精灵上面的时候使用的光标形状。举例: set the cursorofsprite 2

25、0 to 4editable语法: the editable of sprite whichSprite用途: 此属性决定了字段精灵是否能在电影播放期间被编辑。举例: set the editable ofsprite 5 to TRUEforeColor语法: the foreColor of sprite whichSprite用途: 此属性决定了精灵的前景色,但是只有在1位颜色深度的位图精灵和形状精灵上才会是精灵显示发生改变,就像在工具栏中选择了前景色一样。举例; set the foreColor of sprite l0 to 36height语法: the height of sp

26、rite whichSprite用递: 此属性决定的是精灵的垂直高度,以像素为单位。举例: set the height ofsprite l0 to 26ink语法: the ink of sprite whichSprite用途: 此属性决定的是精灵的颜料类型,其有效的颤料类型值如下:0Copy1Transparent2Reverse3Ghost4Noi copy5Not transparent6Not reverse7Not ghost8Matte9MaSk32Blelfld33Add pin34Add35Subtract pin36Background transparent37Lig

27、hiesi”38Subtract39Darkelst举仔个set the ink of sprite l to 8left语法: the left of sprite whichSprite用途:此属性决定了精灵矩形边框的左边框的坐标。举例: set vLowest the left of sprite (i l)lineSize语法: the lineSize of sprite whichSprite用途:此属性决定了形状精灵的线宽类型,以像素为单位。举例: set the lineSize ofsptiie 4 to 3loc语法: the loc of sprite whichSpri

28、te用途:此属性决定了精灵的注册点的坐标,其值是一个点坐标举例: put the loc ofsprite 6-point(50, 100)locH语法: the locH of sprite whichSprite用途:此属性决定了精灵注册点的水平位置。举例: set the locH ofsprite l5 to the mouseHlocV语法: the locV of sprite whichSprite用途:此属性决定了精灵注册点的垂直位置。举例: set the locV ofsprite l5 to 240member语法: ihe member of sprite whichS

29、prite用途:此属性决定了精灵所使用的造型成员和其Cast表。举例: set the member ofsprite l5 member 3 ofcastLib 4memberNum语法: the memberNum of sprite whichSpriie用途:此属性仅仅决定精灵所使用的造型成员,而不决定造型成员所在的Cast表举例: set the memberNum of sprite 3 to 35moveableSprite语法: the moveableSprite of sprite whichSprite用途:此属性决定精灵是否能在电影播放期间被移动。举例: set the moveableSprite of sprite 5 to TRUEpuppet垮法: the puppet of sprite whichSprite用途:此属性决

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1