【文章內(nèi)容簡介】
的幀數(shù)。labellist語法:the labelList返回一個marker名字符串,一個marker名為一行。lastframe語法:the lastFrame返回影片最后一幀的幀數(shù)。left of sprite語法:sprite(whichSprite).leftthe left of sprite whichSprite返回精靈在舞臺上最左邊的像素點的水平坐標。loaded of cast語法:member(whichCastMember).loadedthe loaded of member whichCastMember判斷演員是否裝入內(nèi)存。loch of sprite語法:sprite(whichSprite).locHthe locH of sprite whichSprite返回精靈注冊點在舞臺的水平坐標。locv of sprite語法:sprite(whichSprite).locVthe locV of sprite whichSprite返回精靈注冊點在舞臺的垂直坐標。loop of cast語法:member(whichCastMember).loopthe loop of member whichCastMember如果whichCastMember是數(shù)字視頻或者聲音、Flash動畫,則循環(huán)播放。marker語法:marker(integerExpression)marker(string)返回string所在的幀數(shù),integerExpression是數(shù)字,對應的值如下:marker(2) 返回當前幀以后的第二個marker的幀數(shù)marker(1) 返回當前幀以后的第一個marker的幀數(shù)marker(0) 如果當前幀有marker,則返回當前幀的幀數(shù),如果沒有則返回當前幀前的第一個marker的幀數(shù)marker(1) 返回marker(0) 以前的第一個marker的幀數(shù)marker(2) 返回marker(0) 以前的第二個marker的幀數(shù)mci語法:mci string用mci控制媒體memorysize語法:the memorySize返回內(nèi)存大小modified of member語法:member(whichCastMember).modified the modified of member whichCastMember判斷演員是否被編輯過。1:是;0:否。move cast語法:member(whichCastMember).move()member(whichCastMember).move(member whichLocation)move member whichCastMember {,member whichLocation}在劇組成員窗口移動演員的位置。moveablesprite of sprite語法:sprite(whichSprite).moveableSpritethe moveableSprite of sprite whichSprite判斷、設置精靈是否可以被移動。moviename語法:the movieName返回當前影片名。moviepath語法:the moviePath返回當前影片的路徑name of member語法:member(whichCastMember).namethe name of member whichCastMember返回演員名。例如:member(15).name = Background Soundnothing語法:nothing用于條件語句中,表示什么也不做。objectP語法:objectP(expression)判斷表達式“expression”是否在父腳本或Xtra中被指定。offset語法:offset(stringExpression1, stringExpression2)返回“stringExpression1”在“stringExpression2”中的位置。例如:put offset(media,Macromedia)6offset rect語法:(horizontalChange, verticalChange)offset (rectangle, horizontalChange, verticalChange)設置精靈覆蓋層的偏移量?!癶orizontalChange”:水平偏移量;“verticalChange”:垂直偏移量。例如:on diagonalMovenewRect=sprite(1).(5, 5)sprite(1).rect=newRectendon enterframe語法:on enterFramestatement(s)end當影片播放到當前幀或精靈執(zhí)行“statement(s)”中的劇本。例如:on enterFramerepeat with i = 1 to 5puppetSprite i, FALSEend repeatendon exitframe語法:on exitFramestatement(s)end當前幀播放完成后執(zhí)行“statement(s)”中的劇本。例如:global vTotalon exitFrameif vTotal 1000 then go to frame Finishedendon idle 語法:on idlestatement(s)end播放影片時,如果沒有執(zhí)行任何Handler,可以讓影片來執(zhí)行idle Handler中的指令,但是因為影片一有空檔就會執(zhí)行這個Handler,所以在這個Handler中盡量不要放置太多的指令,以免影響到影片播放的速度。例如:on idlemember(Time).text = the short timeend idleon keydown語法:on keyDownstatement(s)end當按下某一鍵時執(zhí)行“statement(s)”中的語句。on keyup語法:on keyupstatement(s)end松開鍵時執(zhí)行“statement(s)”中的語句。on mousedown語法:on mouseDownstatement(s)end用戶按下鼠標左鍵執(zhí)行“statement(s)”中的語句。on mouseup語法:on mouseupstatement(s)end按下鼠標左鍵以后,松開鼠標左鍵執(zhí)行“statement(s)”中的語句。on startmovie語法:on startmoviestatement(s)end在剛顯示影片的第一幀后,執(zhí)行“statement(s)”中的語句。這個handler只能放在影片劇本中。palette of cast語法:member(whichCastMember).palettethe palette of member whichCastMember只能用于位圖演員,返回位圖演員關聯(lián)的調(diào)色板編號。pass語法:pass停止事件消息的傳送。例如:on keyDown melegalCharacters = 1234567890if legalCharacters contains the key thenpasselsebeepend ifendpasteclipboardinto語法:member(whichCastMember). pasteClipBoardInto()pasteClipBoardInto member whichCastMember把剪貼板中的內(nèi)容粘貼到演員,覆蓋演員中原來的內(nèi)容,如位圖。pathname語法:the pathname同moviePath,只是pathname可以同時使用于Windows和Macintosh。pauseatstart語法:member(whichFlashOrDigitalVideoMember).pausedAtStartthe pausedAtStart of member whichFlashOrDigitalVideoMember控制數(shù)字視頻或者聲音、Flash動畫的播放,值為TRUE,則在開始時暫停。值為FALSE則立即播放。pausestate語法:the pauseState判斷當前影片是否處于暫停狀態(tài)。picture of cast語法:member().picturethe picture of member whichCastMember用圖片替換“whichCastMember”演員中的圖片或文本。pictureP語法:pictureP(pictureValue)判斷“pictureValue”指示的演員是否是圖片演員。play語法:sprite(whichFlashSprite).play()play [frame] whichFrameplay movie whichMovieplay frame whichFrame of movie whichMovieplay sprite whichFlashSprite播放Flash動畫、影片中的某一幀或者某一影片。play done語法:play done結(jié)束當前影片的播放,返回調(diào)用它的影片。point語法:point(horizontal, vertical)點的坐標。printfrom語法:printFrom fromFrame {,toFrame} {,reduction}打印從fromFrame幀到toFrame幀的舞臺。puppet of sprite語法:sprite(whichSprite).puppetthe puppet of sprite whichSprite木偶化精靈“whichSprite”。puppetpalette 語法:puppetPalette whichPalette {, speed} {,nFrames}木偶化調(diào)色板,以便用Lingo對它進行操作。puppetsound語法:puppetSound whichChannel, whichCastMemberpuppetSound whichCastMemberpuppetSound member whichCastMemberpuppetSound 0puppetSound whichChannel, 0木偶化聲音通道中的精靈、聲音演員。puppetsprite語法:puppetSprite whichChannel, state木偶化精靈通道“state”中的精靈。puppettempo語法:puppetTempo framesPerSecond改變影片播放速率。puppettrasition語法:puppetTransition member whichCastMember puppetTransition whichTransition {,time} {, chunkSize} {, changeArea}定義幀過渡效果,“whichTransition”以數(shù)字表示轉(zhuǎn)場效果,對應關系如下:01 Wipe right 27 Random rows02 Wipe left 28 Random columns03 Wipe down 29 Cover down04 Wipe up 30 Cover down, left05 Center out, horizontal 31 Cover down, right06 Edges in, horizontal 32 Cover left07 Center out, vertical 33 Cover right08 Edges in, vertical 34 Cover up09 Center out, square 35 Cover up, left10 Edges in, square 36 Cover up, right11 Push left 37 Venetian blinds12 Push right 38 Checkerboard13 Push down 39 Strips on bottom, build left14 Push up 40 Strips on bottom, build right15 Reveal up 41 Strips on left, build down16 Reveal up, right 42 Strips on left, build up17 Reveal right 43 Strips on right, build down18 Reveal down, right 44 Strips on right, build up19 Reveal down 45 Strips on top, build left20 Reveal down, left 46 Strips on top, build right21 Reveal left 47 Zoom open22 Reveal up, left 48