初级视频编辑室|草蜢非编论坛|初级视编室|草蜢视频编辑|会声会影|威力导演|电子相册

 找回密码
 加入初编室
搜索
查看: 1230|回复: 5
打印 上一主题 下一主题

[Director 多媒体爱好者] Lingo笔记---director成高手之路

[复制链接]

296

主题

1132

帖子

2万

积分

超级版主

Rank: 8Rank: 8

论坛版主精华帖勋章

跳转到指定楼层
楼主
发表于 2014-11-5 07:31:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
onekey onekey
本帖最后由 五星上将 于 2014-11-10 09:23 编辑

注:许多地方把member属性与sprite属性搞混了。
1、play done
Syntax         play done
ends the sequence started with the most recent play command. The play done command returns the playback head to where the calling sequence initiated the play command. If play is issued from a frame script, the playback head returns to the next frame; if play is issued from a sprite script, the playback head returns to the same frame. on exitFrame
play done
end See also         play
提要:返回上一次使用play的地方。好象可以返回前几次使用play处,看帮助。 2、centerstage 测试和设置舞台居中 3、the lablelist 字符串,包含所有marker,每行一个。 4、the markerlist 好象是个表,包含每个marker和它的frame number。 5、the framelabel字符串,当前frame的marker 6、the lastframe Movie property; displays the number of the last frame in the movie. 7、the stageBottom stage底部的垂直坐标。
The stageTop,the stageleft,the stageRight 8、the moviename 9、the score 没读懂,似乎很有用
Movie property;
determines which Score is associated with the current movie. This property can be useful for storing the current contents of the Score before wiping out and generating a new one or for assigning the current Score contents to a film loop.This property can be tested and set. Example         This statement assigns the film loop cast member Waterfall to the Score of the current movie: the score = member("Waterfall".media 此命令可用于制作frame loop 方法如下:
member("lost1".media=the score
但是,似乎某些剧本不能被拷到frame loop中,如需要拖放时输入参数的行为剧本。
10、scoreSelection 选择score
Description         Movie property; determines which channels are selected in the Score window. Specify sprite channels by their channel numbers; use the following numbers to specify the other channels. To specify:         Use:
Frame script channel         0
Sound channel 1         -1
Sound channel 2         -2
Transition channel         -3
Palette channel         -4
Tempo channel         -5 This property can be tested and set. Example         This statement selects sprite channels 15 through 25 in frames 100 through 200: set the scoreSelection = [[15, 25, 100, 200]]
我不知道选择score后有什么用。 11、trace
电影属性,set the trace=true,则director将在message window里按时间顺序显示每一条执行过的lingo语句,可用于调试。
12、tracelogfile
系统属性,可将message windown中显示的消息保存到文本文件中。要想使程序运行在放映机中也能保存信息,则应对要保存的信息使用put语句,如:
on mousedown me
set the tracelogfile=the moviepath&”myfile.txt”
put “I want save this words”
end
此语句非常有用,可以在不使用fileio xtra的情况下,方便的保存程序的状态。 13、traceload
用于在message window 中显示member的加载情况,模式2的输出如:
Time = 86 msec (42 msec later).
Movie "lostlandline" is on frame 1 (freeBytes = 269905576, 1280 bytes consumed).
member 215 of castLib 1 ("music2" was loaded into memory.
Member is in movie "E:\my香格里拉\dir\go\lostlandline.dir"
File seek info: Seeked 253 to find member at file pos 228724. Read in 1447 bytes. 14、commanddown,optiondown,shiftdown
检测ctrl,alt,shift键是否被按下 15、the keycode,the key,the keypressed
输出键值,输出键的名字输出键的名字。(但我没能用keycode输出过键值,包括功能键的键值) 16、the keydownscript,the keyupscript,the mousedownscript,the mouseupscript 补充:timeoutscript 设置按下、放开键,按下、放开鼠标时执行的lingo命令,它的值必须是一个字符串,它可以用来掉用句柄。例:the keyDownScript = "myCustomHandler" 17、sprite(number).cursor=N或sprite(number).cursor=[N1,N2]
为不同的sprite指定不同的cursor 18、inlineImeEnabled
决定用户能(true)否(false)直接输入双字节字符(似乎在日文系统下才有效,不知中文系统下有何用),可以在preferences\General中设置。 19、the lastroll,the lastclick,the lastkey,the lastevent
测定上一次鼠标移动,鼠标点击,按下键,及发生上述任一事件,到现在有多长时间(tick) 20、timeoutkeydown 21、time( )
the time,the short time,the long time,the abbreviated time,the abbrev time,the abbr time,
按不同格式返回系统时间
22、timer与startTimer
startTimer开始计数,并将timer设为0。
Timer 计时器,mytime=the timer将timer的值存入mytime。 23、timeoutLapsed
自从上次timeout事件发生后,过了多少ticks。 24、do
执行一个lingo命令,该命令以字符串的形式给出,如do “beep 2”。关于此命令的用法,我的《director开发手记》中有有价值的内容。
25、the clickloc,the clickon, the doubleclick
the clickloc输出鼠标单击的位置,the clickon输出最近一次单击的精灵,the doubleclick分析最近的一次鼠标行为是否是双击。
26、the mouseChar,the mouseitem,the mouseLine,the mouseWord
用于field演员,the mouseChar指出鼠标下的字符是该演员中的第几个字符。用于text演员时总输出-1。The mouseIterm指出鼠标下的字符在该演员中的第几个部分,这个“部分”是指两个逗号之间的字符串,如”112,sdv,ddd,eee”有四个部分。The mouseLine与the mouseWord也类似。 27、item ..of
引用一个文本或域的item,即“部分”。 28、the itemDelimiter
测试和设定分隔符,缺省的分隔符是逗号。
29、the mousemember
输出鼠标下的member的名称。 30、right, left,top,botton,top,height,width,loch,locv
检测和设置member的尺寸。 31、the rightmousedown,the rightmouseup,on rightmouseup,on rightmousedown
一目了然。
32、on musewithin与on mouseEnter有何区别?
假如鼠标进入sprite便停在里面,这种情况下,on mouseEnter 只执行一次,而on mousewithin要反复执行。 33、rollover()
rollover(member):返回真或假,判断鼠标是否在某member上。
The rollover:返回鼠标下的member名。 34、the stilldown
指出鼠标按下后一直没放开。 35、automask
the automask of member 或member(cursorMember).automask。值为true,false
使动画光标中的白色象素变为透明,背景像素直接显示。 36、cursorSize
改变动画光标的大小。只能有16和32两种。 37、hotspot
member(cursorMember).hotspot定义光标热点。
例:member(cursorMember).hotsprot=point(16,16) 38、interval
member(cursorMember).interval=毫秒
指定动画光标的帧间的时间间隔。 39、castMemberList
member(curosrMember).castMemberList=列表
为动画光标指定一个member列表。CastMemberList不是关键字,但director没报错。CursorMember必须是一个动画光标,由Insert\Media Element\Cursor创建,创建动画光标时可以不为它指定成员。动画光标必须用8-bit位图。 40、on activateApplication,on deactivateApplication ,on deactivateWindow
on activateApplication当放映机回到前台时调用该句柄。MIAW也能用它。在创作过程中,它只在General Preferences\ Animate in Background 选项打开时起作用。 on deactivateApplication与on activatApplication相对应。 on deactivateWindow当放映机窗口deactivate(vt. 解除动员, 使无效, 复员, 使不活动——应译为“终止窗口”?应该不是“调到后台的意思”)时调用该句柄。 41、appminimize
使窗口最小化。         42、the beepOn
使鼠标点在任何sprite上时都发出一声beep 43、the colordepth
the colordepth=N,其中N只能取1,2,4,8,16,32,此命令用于设置显示器的色彩深度。很强大! 44、the desktoprectlist
put the desktopRectList输出屏幕尺寸。 45、the environment
put the environment输出一个运行环境的列表。包括以下项目:
#shockMachine         Integer TRUE or FALSE value indicating whether the movie is playing in ShockMachine. #shockMachineVersion         String indicating the installed version number of ShockMachine. #platform         String containing 揗acintosh,PowerPC? or 揥indows,32? This is based on the current OS and hardware that
the movie is running under.
#runMode         String containing 揂uthor? 揚rojector? 揚lugin? or 揓ava Applet? This is based on the current application that the movie is running under.
#colorDepth         Integer representing the bit depth of the monitor the Stage appears on. Possible values are 1, 2, 4, 8, 16, or 32.
#internetConnected         Symbol indicating whether the computer the movie is playing on has an active Internet connection. Possible values are #online and #offline.
#uiLanguage         String indicating the language the computer is using to display its user interface. This can be different from the #osLanguage on computers with specific language kits installed.
#osLanguage         String indicating the native language of the computer抯 operating system. #productBuildVersion         String indicating the internal build number of the playback application. 46、the floatPrecision
设置浮点运算精度。
the floatPrecision=8使输出的浮点数有8位小数。 47、flushInputEvents()
立即执行director任务队列中的鼠标事件和键盘事件。例如,可以在循环中使director腾出时间来检测和响应鼠标、键盘:
repeat with i = 1 to 10000
flushInputEvents()
sprite(1).loc = sprite(1).loc + point(1, 1)
end repeat
48、the maxInteger
输出系统支持的最大整数。 49、MCI
MCI “string”将string输出到Windows Media Control Interface (MCI,即媒体控制接口) 50、the multiSound
指示系统是否支持多声道,值为true与false。

51、pasteClipboardInto, copyToClipBoard
pasteclipboardInto——将剪贴板中的内容拷贝到cast member上,原member被删除。如,可以将一幅图片拷贝到一个field成员上。下例将剪贴板中的内容拷贝到member “Shrine”上:
member("shrine".pasteClipBoardInto()
member(WhichMember).copyToClipBoard( )拷贝到剪贴板 52、the platform
指出程序是在哪种平台上创建的。 53、printfrom
打印放映机中的帧。只能打成72dpi,用随director发布的PrintOMatic Lite Xtra能进行更多控制。 54、restart,shutdown
restart重起系统。Shutdown关闭系统。 55、romanLingo
设置使用单字节字符(true)或双字节字符(false),有可能只用与Mac。 56、color( )
color(#rgb, redValue, greenValue, blueValue) color(#paletteIndex, paletteIndexNumber) rgb(rgbHexString) rgb(redValue, greenValue, blueValue) paletteIndex(paletteIndexNumber) 57、frameReady( )
用于流式传输。
FrameReady(frameN):针对Director movie,检测frame N用到的member是否下载完毕。
FrameReady(frameN,frameZ):针对flash,检测这个流文件是否已做好播放的准备。
FrameReady( ):检测是否所有的member都已下载完毕。 58、the freeblock
put the freeblock输出最大的内存空闲块的大小。 59、the freebytes
put the freebytes输出总共空闲的内存数。 60、loaded
member(memberName).loaded检测member是否已被导入内存。
外形(shape)和script总是被导入内存。
Movie cast member不能被unload
视频文件可以被reload和unload 61、member(memberName).mediaReady
检测member的内容是否已从网上下下来。 62、memorySize
put memorySize输出分配给程序的内存总量。(我试用的结果,似乎是剩余内存总量) 63、the movieFileFreeSize
put the movieFileFreeSize 输出由对member的编辑、删改所造成的内存占用。用”save and compact”可释放这些内存。 64、the moviefileSize
put the movieFileSize查看电影占用的磁盘空间。 65、preloadEventAbort
set the preloadEventAbort=true使用户按下键盘或鼠标就能终止member的preload 66、preloadMode
castLib(witchCast).proloadMode=,,设置member的preload属性。
0——oad cast when needed.
1——oad cast before frame 1.
2——oad cast after frame 1.
常用在on prepare movie中。 67、preloadMovie
preloadmove WhichMovie
若要从网上预加载应使用preloadNetThing 68、preloadRam
set the preloadRam=N
设置用于预加载视频文件的内存大小。注意:video预加载时好象优先于其它格式。
楼主热帖
河边已是一首歌
回复

使用道具 举报

296

主题

1132

帖子

2万

积分

超级版主

Rank: 8Rank: 8

论坛版主精华帖勋章

沙发
 楼主| 发表于 2014-11-5 07:32:11 | 只看该作者
69、preload
preload :preload所有的member
preload toFrameNum:preload当前帧到toframeNum的所有Member
preload fromFrame toFrame 70、preloadMember( )
preLoadMember member(whichCastMember).preLoad( ) preLoadMember whichCastMember member(fromCastmember).preLoad(toCastMember) preLoadMember fromCastmember, toCastmember
preload成功后将返回cast的number,在preload命令的后面发一个put the reslult即可看的返回值。 71、the preload of member
member(memberName).preload=true/false
用于视频。 72、the purgePriority
member(whichCastMember).purgePriority=0/1/2/3设置unload级别。
0——ever
1——last
2——next
3——normal 73、ramNeeded
put ramNeeded (firstFrame, lastFrame)输出指定的帧系列需要的内存。 74、unloadMember
unLoadMember member(whichCastMember). unLoad() unLoadMember member whichCastMember member(whichCastMember, whichCastLib). unLoad() unLoadMember member whichCastMember of castLib whichCast member(firstCastmember). unLoad(lastCastMember) unLoadMember member firstCastMember, lastCastMember
从内存中清除。 75、unloadMovie
unloadMovie whichMovie 76、unload
unLoad
unLoad theFrameNum
unLoad fromFrameNum, toFrameNum 77、the activeCastLib 78、the filename of castLib
castLib(whichCast).fileName为指定的cast指定文件。 79、findEmpty( )
member(WhichMember).findEmpty( )输出member后的第一个空的cast的位置。 80、the name of castLib
输出castLib的名字。 81、the number of castlib
castLib(WhickCastLib).number输出编号。 82、the selection of castLib
castLib (whichCast).selection the selection of castLib whichCast set the selection of castLib whichCast =[ [ startMember1 , endMember1 ], \
{[ startMember2 , endMember2 ], [ startMember3 , endMember3 ]...]} castLib(whichCast). selection =[ [ startMember1 , endMember1 ], \
{[ startMember2 , endMember2 ], [ startMember3 , endMember3 ]...}}
效果等同于在cast窗口中用鼠标选中member。不知道在运行状态下这有什么用。 83、selection函数
put the selection输出用鼠标选中的文字。
84、save castLib
castLib(whichCast).save( ) castLib(whichCast).save(pathName & newFileName) save castLib whichCast {,pathName&newFileName}
保存对cast文件的更改。我不明白,打包后也起作用吗? 85、duplicate( )
member(memberName).duplicat( ) member(originalMember).duplicate({new}) duplicate member original {, new}
拷贝一个memebr(包括copy和paste), new 用来指定拷贝到哪个cast window,         确省为第一个打开的窗口。
最好别用在放映机中。 86、erase( )
member(whichCastMember).erase( )
删除member
最好别用在放映机中。
Director行为库中的一个过渡效果用了此函数。 erase myTransitionMember(用于放映机中,注意没括号)。
87、importFileInto
importFileInto member whichCastMember, fileName importFileInto member whichCastMember of castLib whichCast, fileName importFileInto member whichCastMember, URL
用文件”fileName”覆盖member 88、linkas( )
castMember.linkAs( )
打开一个save对话框,允许将一个script保存到一个外部文件。此script将link到文件上。 89、new( )
可以用于script,bitmap,等,重点。

90、picture(cast member property)
决定什么图片关联到一个文本、位图、PICT演员。
member(whichCastMember).picture设置picture,
member(whichCastMember).picture = member(whichCastMember).picture将后一member的图片赋予前一member.
Put member(bitmapMember).picture输出此bitmap在内存中的代号。 91、picture(window property)
the stage.picture window whichWindow.picture
获取当前window或MIAW中的图片。 91、scriptsEnabled
member(whichCastMember).scriptsEnabled检测及设置障碍member上的script是否允许执行。 92、scriptText
member(WhichMember).scriptText
显示script的内容(Cast member property; indicates the content of the script, if any, assigned to the cast member specified by whichCastMember)? 93、charPosToLoc( )
put member(whichCastMember).charPosToLoc(N)输出field的第N个字符相对于其左上角的位置,以像素为单位。 94、count
put list.count输表的项数。 95、antiAlias
用于text,矢量图,flash,有true与false两个值,true为高质量显示,但速度慢。 96、antiAliasThreshold
当antiAlias为true时才有效。设置automatic anti-aliasing字型的字号。 97、kerning
member(whichTextMember). kerning设置某些会交叠的字符如(AW)的距离是否自动调整,可为true(自动)和false 98、kerningThreshold
设置自动调整多大距离。参见kerning。

99、on hyperlinkClicked me, data, range
句柄,在点击超链接时执行。
参数:me
data—设为超链接的字符
range—Ref.char[range..range]形式的设为超链接的字符
100、pointInHyperlink()
sprite(whichSpriteNumber).pointInHyperlink(point)判断point是否位于超链接字符范围内。 101、pointtochar,to iterm,to words,to line等
put sprite(spriteNum).pointToChar(pointClicked)输出pointClicked位置的字符在text 型sprite中的位置。对于中文,它输出的是实际位置的二倍。命令与征服中的member 18上有实例。 102、selectedText
返回当前选中的文本。????????? 103、useHypertextStyles
member(whichTextMember).useHypertextStyles=True/False控制超链接的显示。
True:鼠标会变,下划线变成蓝色。
False:
104、bitmapSizes
put bitmapSizes输出字体member的字号。 105、duration
用于声音、视频、shockwave、quickTime、过渡等。用于不同对象时使用不同的单位。除了过渡,其它对象的duration只能被检测。 106、transitiontype
过渡的代号。 107、cuepointName
put member(memberName).cuepointName[N]输出线索点的名字。 108、cuepointTimes
put member(memberName).cuepointtimes[N]输出线索点的时间位置? 109、on cuePassed
on cuePassed(channelID, cuePointNumber,cuePointName)
statement(s)
end on cuePassed(me,channelID, cuePointNumber,cuePointName)
statement(s)
end
channelId:声道号
cuePointNumber:线索点编号(引发事件的线索点)
cuePointName:线索点名字(有可能是下一个线索点的名字) 110、mostRecentCuePoint
sprite(whichSprite).mostRecentCuePoint最近经过的线索点
shockWave成员放在sprite通道中,但它们的声音是在sound通道中播放。最好用它们的sprite 通道号调用它们的声音,而不用声道号。 111、digitalVideoTimeScale
数字视频的时间刻度,N个播放单位/s
set the digitalVideoTimeScale to N
N(N!=0)——N个单位/秒
0——使用视频文件的缺省刻度。 112、videoForWindowsPresent
put the videoForWindowsPresent
检测AVI是否被系统支持。
113、center         、crop、scale
member(MemberName).center=True/False
crop与center配合,用于裁剪视频,scale用于缩放视频,但只在direct to stage 模式下才有效。
114、controller
set member(AVImember).controller=Ture/False
设置AVI是否显示播放、停止等内部集成的控制键。 115、digitalVideoType
可能值有#quickTime or #videoForWindows. 116、frameRate,loop
member(whichCastMember).frameRate
member(whichCastMember).loop 117、pausedAtStart
member(whichFlashOrDigitalVideoMember).pausedAtStart=True/False 决定数字视频是否在开头停顿。 118、sound
member(whichCastMember).sound决定movie, 数字视频, 或 Flash的声音是否播放。
对于flash,新设置在当前声音播放完后才生效。 119、timeScale
用于声音与视频同步,没具体搞清。 120、video
member(whichCastMember).video=True/False
检测数字视频的graphic image是否工作。 121、trackCount()
put member(whichCastMember).trackCount()输出视频的轨道数。 122、trackType()
put member(whichDigitalVideoCastmember).trackType(whichT rack)输出轨道类型。 123、trackStartTime(),TackstopTime
member(MemberName). TrackStartTime(track)
sprite(spriteName). TrackStartTime(track)
检测轨道开始时间。
不能被设置。 124、movieRate
sprite(spriteName).movieRate
输出电影播放速度,有0,1,2,等,并不是精确速度。 125、movieTime
sprite(whichSprite).movieTime电影已播放的时间,能测能设。 126、setTrackEnabled
sprite(whichSprite).setTrackEnabled(whichTrack, trueOrFalse )决定track是否使用。 127、trackNextKeyTime
sprite(whichDigitalVideoSprite).trackNextKeyTime(whi chTrack)当前时间的下一个关键帧的位置。 128、mapStageToMember()
sprite(whichSpriteNumber). mapStageToMember(Point)如果point在sprite中,则返回该point以该sprite的左上角为坐标0点的坐标,否则返回void。
例:写在frame script中:
put sprite(2).mapstagetoMember(the clickloc) 129、mapMemberToStage()
与mapStageToMember相反。 130、quad
put sprite(whichSpriteNumber).quad输出sprite的四个定点的坐标。 131、对应director中几个按钮的名令:
flip,skew       
132、elapsedTime与currentTime
效果一样,返回以ticks表示的当前工作sound 的播发时间。
133、fadeIn(),fadeOut(),fadeTo
sound(channal).fadeIn(ticks)声音的淡入淡出。但不知该写在什么剧本里(曾写在frame剧本中,有效),似乎是用毫秒做单)。 134、setPlayList( )和getPlayList( )及queue( ) 一、queue( )
1、sound(channelNum).queue(member(whichMember)) 2、sound(channelNum).queue([#member: member(whichmember), {#startTime: milliseconds, #endTime: milliseconds, #loopCount: numberOfLoops, #loopStartTime: milliseconds, #loopEndTime: milliseconds, #preloadTime: milliseconds
}])
预加载指定声音的一定长度的数据到声音通道播放队列中,以消除延迟。里面要用到loopCount,有关于它的帮助,但奇怪的是,它并不是LINGO关键词。 二、setPlayList()
一次性queue多个sound 三、getPlayList()
得到已经queue的sound的线性列表。 135、multiSound
put the multiSound检测系统是否支持多声道。 136、pan
set sound(N).pan= -100—— +100设置左右声道平衡。 137、sound playFile
sound playFile whichChannel, whichFile播放外部声音文件。 138、sound palyNext( )
sound(channelNum).playNext( )立即中断当前声音,播放下一个已经queue的声音,如果列表里已经没有声音,则停止播放。 139、preloadTime( )
用于shockWave的预加载。 140、puppetSound()
使lingo完全控制声轨,覆盖score中设置的声音,在引导另一个movie到内存时特别有用(怎么有用?答:声音不会断)。
使用puppetSound whichChannl,0会将控制权交回score.
141、rewind( )
sound(channelNum).rewind( )使声轨倒到开头。
也可用flash. 141、sampleRate,sampleSize
put sound(N).sampleRate输出当前声轨的取样频率。
put sound(N).sampleSize输出当前声轨的取样精度。 142、soundDevice,soundDeviceList
set the soundDevice=”directsound” / ” MacroMix” / ”Qt3mix”设置混音设备。
Put soundDeviceList 输出可用的混音设备列表。 143、soundLeve,volume
set the soundLevel = 5设置系统音量,相当于设置windows的音量控制器。
Set sound(N).volume = 130设置音轨N的音量。 144、status
put sound(2).status有以下可能值: Status         Name         Meaning
0         Idle         No sounds are queued or playing.
1 Loading         A queued sound is being preloaded but is not yet playing.
2         Queued         The sound channel has finished preloading a queued sound but is not yet playing the sound.
3         Playing         A sound is playing.
4         Paused         A sound is paused. 145、geterror( ),geterrorString( )
用于shockWave,输出流传输过程中的error号和error描述字串。 146、constrainH,contrainV
constrainH (whichSprite, integerExpression)如果interger的值在sprite的左、右边缘的横坐标的值之间,则返回integer,否则返回接近interger的边缘的横坐标。 147、constraint
sprite(whichSprite).constraint=sprite(N) 将whichSprite的活动范围限制在spirte(N)中。

148、keyboardFocusSprite
set the keyboardFocusSprite=spriten(textSpriteNum)将焦点设置在指定的sprite上。使用autoTAb属性和TAB键配合也能达到此效果。 149、lineSize
属性,检测矢量图的border的像素密度(the thickness, in pixels, of the border) 150 、mouseLevel
sprite(whichQuickTimeSprite).mouseLevel用于QuickTime影片,决定director将哪些mouse click事件传递给QuickTime影片。有如下取值:#controller,#none,#all,#shared
河边已是一首歌

296

主题

1132

帖子

2万

积分

超级版主

Rank: 8Rank: 8

论坛版主精华帖勋章

板凳
 楼主| 发表于 2014-11-5 07:32:27 | 只看该作者
151、puppet of sprite
sprite(whichSprite).puppet=True / False
当一个sprite被puppet掉,实际上是puppet该sprite 通道,而非这个特定的sprite。此时,凡是使用了sprite(N)的lingo指令,如sprite(me).loc=point(x,y),实际上是作用于整个通道,不论在通道上放上多少个member,都将受到指令影响。
当sprite没有被puppet, lingo 指令对他的作用只持续到这个sprite的生命期结束。
在director 6以前,许多属性必须在生明puppet后才能由lingo控制。 152、pause和resume
用于GIF动画,暂停和继续。 153、setScriptList( )和scriptList
put sprite(N).spriteList 输出sprite上的script
sprite(whichSprite).setScriptList(scriptList) 为sprite指定script,不能在score录制过程中使用, 154、intersects(等同于within)
sprite(sprite1).intersects(sprite2)判断两个sprite是否重叠。等于sprite(sprite1).withIn(sprite2).
Intersects实际上是一个运算符 155、@ , applicationPath
@:代表电影文件(.Dir)的位置。
ApplicationPath:放映机的位置。 156、fileName(of castLib)
put castLib(whichCast).fileName 如果该castLib是外部castLib,则输出其名字和路径,如是第一个internal,则输出电影文件(。Dir)的名字,其他internal则输出空串。 castLib(whichCast).fileName=filename为一个castLib指定一个.cst文件。 157、filename(of membe,of window)
158、media
member(whichCastMember).media
cast member property。将member 标记为一个数字,通过这个数字可以将一个member 的内容拷给另一个。
例如:
member("Dawn".media = member("Sunrise".media 159、@
指代movie所存在的目录。可用\, /,:         160、image
位图的内存映象,一旦建立了映象,便可在象素级对位图进行操作,操作将返映在原位图上。帮助文档见Creating image objects、Editing image objects
补充:
myimage=image(width,height,depth, {, alphaDepth} {, paletteSymbolOrMember})建立一个image对象。AlphaDepth必须为0或8,paletteSymbolOrMember只有在image是一个2、4、8比特的位图时才能指定,它可以是一个调色板symble形式的名字,或者是调色板member。 Myimage=Member(memberName).image将myimage与member的image关连,进一步可以修改。
例:
on mouseUp me
myimage=image(member("zg.jpg".width,member("zg.jpg".height,1)
myimage=member("zg.jpg".image.extractAlpha()
member("fzd12".image=myimage
end
将member(“zg.jpg”)的Alpha通道取出,拷贝到member(“fzd12”)。
161、fill( )
imageObject.fill(left,top,right,bottom, colorObjectOrParameterList)
用给定的颜色填充指定图片的指定区域。最后一个参数可以是corlorObject 或者 ParameterList
若是parameterList,将用此list指定的矢量图来填充区域。 Property         Description #shapeType         A symbol value of #oval, #rect, #roundRect, or #line. The default is #line.
#lineSize         The width of the line to use in drawing the shape.
#color         A color object, which determines the fill color of the shape.
#bgColor         A color object, which determines the color of the shape’s border. 例:
TestImage.fill(0, 0, 100, 100, [#shapeType: #oval, #lineSize: 5, #color: rgb(0, 255, 0), #bgColor: rgb(255, 0, 0)])
若是colorObject(色彩对象,即调色板),则用一个数字代表调色板,在director的proerty inspector中,调色板共有11种,除了system-win、system-win(dir 4)的代号为-102,-101外,其余从上到下分别为-1到-9,如果还有导入的调色板则它的代号就是它在castLib的位置。代号为0表示没有调色板。 162、copyPixels( )
imageObject.copyPixels(sourceImageObject, destinationRect, sourceRect {, parameterList})
拷贝,并能在拷贝前对目标通过parameterList进行一些操作。见帮助。
不论sourceRect有多大,都将用它填满destinationRect,小了就拉伸,大了就缩小。

163、activeCastLib
检测哪一个是活动的castLib,只能测不能设。
例:castLibOfInterest = the activeCastLib其中castLibOfInterest是变量。
164、startFrame、endFrame
sprite(N).startFrame:检测某个sprite从哪一帧开始。 Sprite(N).endFrame:检测某个sprite从哪一帧开始。 165、new函数的几种形式
创建新的cast member。
new(type) type可以使用#bitmap, #field等等,如new(#bitmap)会在castLib中添加一个新的member。 new(type, castLib whichCast) 在castLib中添加一个新的member new(type, member whichCastMember of castLib whichCast) 用于改变已经存在的member的type属性,例如,能将field改成bitmap,当然,field的内容会丢失。 variableName = new(parentScript arg1, arg2, ...) 生出子脚本。 new(script parentScriptName, value1, value2, ...) timout("name".new(timoutPeriod, #timeoutHandler, {, targetObject}) 建立一个timeOut对象(好象用不着父脚本)。TimeOutPeriod指定对象发出timeOut事件的周期,#timeoutHandler指定timeout事件发生时调用的句柄。TargetObject指定包含了timeoutHandler的子对象。例如:timeout("yang".new(5000,#dd,"timeouts",其中”yang”可随便用什么string,”#dd”中“dd“表示调用on dd句柄,”timeouts”表示包含”dd”句柄的一个剧本,该剧本必须是movie剧本;help文档中剧本的名字没加引号,是错误的。 new(xtra "xtraName" 使用xtra的惯例。
注意:若将电影存成java,则只有建立child Object的 new命令能够生效。
166、regpoint
put myPicture.RegPoint输出注册点的坐标。
167、atan( )
反正切函数。 168、power( )
求幂。Put power(4,3)输出64.0000 169、on isOKToAttach me, spriteType, spriteNum
配合on getPropertyDescriptionList用于通用的script中,检测本script是否可用于目标sprite。必须在其中返回True或False,决定本次拖动script的行动是否有效。
on isOKToAttach (me, aSpriteType, aSpriteNum)
-- can be attached to either bitmaps or text
isOK = FALSE
case aSpriteType of
#graphic:
case sprite(aSpriteNum).member.type of
#bitmap, #text, #flash, #vectorshape:
isOK = TRUE
end case
end case
return isOK
end isOKToAttach
#graphic包含#bitmap,#text,,#flash,#vectorshape等。相对于#graphic是#script。 170、on getBehaviorTooltip
在Library 窗口中为行为提供简短的帮助信息(tooltip)。
on getBehaviorTooltip
return \
"Creates a transition where the sprite resolves from or into a grid of low-resolution pixels."
end getBehaviorTooltip
171、mask
member(name).mask=某个mask。
Mask是一个1比特位图,在这种用法中,它用于指示系统:mask的黑色位置可以作色,白色为置不能作色。似乎只有direct-to-stage模式才能使用。
172、currentSpriteNum
似乎没什么好说 173、max
list.max()
max(list)
max(value1, value2, value3, ...)
取出最大值。
河边已是一首歌

425

主题

8091

帖子

7万

积分

超级版主

Rank: 8Rank: 8

精华帖勋章论坛版主活跃会员百帖纪念荣誉勋章帅哥会员论坛万元户

地板
发表于 2014-11-9 20:19:19 | 只看该作者
谢谢楼主提供分享

296

主题

1132

帖子

2万

积分

超级版主

Rank: 8Rank: 8

论坛版主精华帖勋章

5#
 楼主| 发表于 2014-11-9 22:40:04 | 只看该作者
duanxb 发表于 2014-11-9 20:19
谢谢楼主提供分享

谢谢你对草蜢的支持!
河边已是一首歌

131

主题

5690

帖子

11万

积分

初编室元帅

Rank: 14Rank: 14Rank: 14Rank: 14

帅哥会员活跃会员论坛万元户百帖纪念荣誉勋章

6#
发表于 2015-1-12 05:55:04 | 只看该作者
逛一逛,看一看。
您需要登录后才可以回帖 登录 | 加入初编室

本版积分规则

手机版|小黑屋|初级视频编辑室

GMT+8, 2024-6-24 03:35 , Processed in 0.062346 second(s), 30 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表