主题:  第四部分后八条全部

草原风

职务:版主
等级:5
金币:13.0
发贴:3489
#12002/1/4 10:29:59
end
语法:end
描述:关键字; 标记句柄或多行控制结构的结束

end case
语法
end case
描述:关键字;结束一个case 语法
例子 :此处理程序用了 end case 关键字来结束case 语法:
on keyDown
case the key
of "A": go to frame "Apple"
of "B", "C" :
puppetTransition 99
go to frame "Mango"
otherwise beep
end case
end keyDown
参见
case
endColor
语法 :the endColor of member whichCastMember
描述 :矢量图形演员表属性;结束一个用RGB值来填充的渐变形状
endColor 仅仅当填充模式设置为渐变色并且开始颜色设置为填充时有效
此属性可以设置及测试。
看一个例子在一个完整的电影中应用endColor,可以在Director应用程序安装的文件夹下的Learning\Lingo Examples文件平中找到一个矢量图形的电影的例子。.
参见:
color(), fillColor, fillMode
endFrame()
语法 :sprite(whichSprite).endFrame
描述 :函数;返回一个Sprite跨度的结束帧的帧数
此函数对于决定一个精细的Sprite在Score中的跨度是很有益的。此函数仅仅在帧中包含Sprite时才有用。不能在电影的不同的帧中应用,也不可能设置该值。
例子 :此表达式在调试窗口输出一个报告:在第五通道中Sprite的结束帧的帧数
put sprite(5).endFrame
参见:
startFrame

endRecording
语法 :endRecording
描述 :关键字;结束一个Score 更新对话。你可以在endRecording关键字结束后通过木偶化重新开始控制一个Score通道
例子 :当在下面的处理程序中应用时,endRecording关键字结束Score发生的对话:
on animBall numberOfFrames
beginRecording
horizontal = 0
vertical = 100
repeat with i = 1 to numberOfFrames
go to frame i
sprite(20).member = member "Ball"
sprite(20).locH = horizontal
sprite(20).locV = vertical
horizontal = horizontal + 3
vertical = vertical + 2
updateFrame
end repeat
endRecording
end
参见:
beginRecording, scriptNum, tweened, updateFrame
end repeat
参见:
repeat while, repeat with, repeat with...in list, repeat with...down to
id3Tags
语法 :member(whichMember).id3Tags
描述 :MP3声音属性;返回声音文件的ID3标签列表。如果有声音的作者则此标签包含也包含此信息。id3Tags返回一个属性列表可能包含下面属性的任何属性:
Tag Name
Content

TALB
Album/Movie/Show title

TBPM
Beats Per Minute

TCOM
Composer

TCON
Content type

TCOP
CopyRight message

TDAT
Date

TDLY
Playlist delay

TENC
Encoded By

TEXT
Text Writer

TFLT
File Type

TIME
Time

TIT1
Content group Description

TIT2
Title/SongName/Content Description

TIT3
Subtitle/ Description refinement

TKEY
Initial Key

TLAN
Language(s)

TLEN
Length

TMED
Media Type

TOAL
Original album/movie/showTitle

TOFN
Original FileName

TOLY
Original lyrics/text writer(s)

TOPE
Original Artist/performer

TORY
Original release year

TOWN
File owner/licensee

TPE1
Lead performers/Soloists

TPE2
Band

TPE3
Conductor

TPE4
Modified by

TPOS
Part of set

TPUB
Publisher

TRCK
Track number

TRDA
Recording dates

TRSN
Internet radio station name

TRSO
Internat radio station owner

TSIZ
Size

TSRC
ISRC (International standard recording code)

TSSE
Software/ hardware and settings used for encoding

TYER
Year

COMM
Comment
此 id3Tags 属性只能用于测试那些通过Insert > Shockwave Audio 命令插入到成员表中的MP3的成员。成员必须在id3Tags 属性测试之前通过preLoadBuffer()命令已经预载入。id3Tags 对于通过导入命令导入的MP3或Shockwave Audio (.swa)文件不是有益的。
id3Tags属性不能在Director内设置。然而,多数MP3录制或外部的应用软件提供这个功能。
例子 :此语法在调试窗口中显示一个MP3成员的标题
member("TitleSong").preload()
put member("Title Song").id3Tags
-- [#TALB: "Love Theme", #TCOM: "Jane Smith", #TRDA: "8/19/76"]
参见 :
preLoadBuffer()
interval
语法: member(whichCursorCastMember).interval
the interval of member whichCursorCastMember
描述: 光标成员属性;指定时间间隔,在每个帧动画颜色光标成员whichCursorCastMember之间的毫秒数。默认值为100毫秒。
光标时间间隔独立于电影在通道速率中或用puppetTempo命令设置的帖速率。
此属性可以被测试和设置。
例如: 在此sprite脚本中,当动画颜色光标存储在成员表中命名为Butterfly放入sprite ,时间间隔设置为50毫秒以加速动画。当光标离开sprite,时间间隔重新设置到100毫秒来减速动画。
on mouseEnter
member("Butterfly").interval = 50
end
on mouseLeave
member("Butterfly").interval = 100
end