atignment
语法:the alignment of member whichCastmember
用途:此属性决定了字段文本的对齐方式,其有效值为Left, Right和Center。
举例: set the alignment of member“Field”to“left”
autoTab
语法: the autoTab of member whichCastmember
用途:此属性决定了可编辑的字段在电影播放期间是否可以通过Tab键来切换到下一个字段。
举例: set the autoTab of member,"Field" to TRUE
border
语法:the border of men1ber whichCastmember
用途:此属性决定了字段精灵周围的矩形边框的粗细,以像素为单位。
举例: set the border of member"Fleld" to l0
boxDropShadow
语法: the boxDropShadow of member whichCastMember
用途:此属性决定了字段精灵边框的阴影的大小,以像素为单位。
举例: set the boxDropShadow of member” Field” io l0
boxType
语法: the boxType of member whichCastmember
用途:此属性决定了字段精灵显示的种类,其有效值为#adjust, #scroll, #flxed和#limit。
举例: set the boxType of member” Field” to #scroll
editable
语法, the editable of member whichCastmember。
用途:此属性决定了字段精灵的可编辑性。
举例: set the editable of member“Answer”= TRUE
font
语法: the font of member whichCastmember
用途:此属性用来设置字段精灵的显示字体。
举例: set the font of line l of子member”Speaks” to“Arial”
fontSize
语法: the fontSize of member whichCastmember
用途:此属性用来设置字段精灵的字体大小。
举例: set the fontSize of line 2 of memberTpeaks” to l8
lineCount
语法:the lineCount of member whichCastMember
用途:此属性返回字段精灵的行数,但是不能直接设置这个属性。
举例: set numbeOfLines = the lineCount of member“Today”
lineHeight
语法: the lineHeight of member whichCastmember
用途:此属性决定了字段文本的行间距的大小。
举例: set oldHeight = the lineHeight of member” Speaks”
margin
语法: the margin of member whichCastmember
用途:此属性决定了字段内部的边缘空白的大小,以像素为单位。
举例: set the margin of member“News” to l5
pageHeight
语法: the pageHeight of membor whichCastmember
用途:此属性返回了舞台上整个字段精灵的高度大小,以像素为单位。
举例: put the pageHeight of membern“News”
scrollTop
语法: the scrollTop of member whichCastmember
用途:此属性决定了字段精灵顶部边缘到字段的距离。
举例: set the scrollTop of member”Credits=10
text
语法: the text of member whichCastmember
用途:此属性决定了字段精灵中的文本。
举例:if the text of member “Response”=EMPTY then
set the text of member“Response”to “Thank You”
end if
selEnd
语法:the selEnd
用途:此属性决定了字段中所选择部分的最后一个字符。
举例: set the selEnd to 5
selStart
语法:the selStart
用途:此属性决定了字段中所选择部分的第一个字符。
举例: if the selEnd = the selStart then noSelection
scrollByLine
语法: scrollByLine member whichCastmember, amount
用途:此命令将字段在垂直方向上进行滚动,其距离由amount的值决定,以行为单位。如果amount为正,就向下滚动,如果amount为负,就向上滚动。
举例: scrolIByLine member’, News,,,5
scrollByPage
语)t: scrolIByPage member whichCasiMember, amount
用途:和scrolIByLine命令柑类似,只是滚动的时候是以页(字段精灵的大小)为单位。
举例: scrollByPage member”Today News,5
charPosToLoc
语法: charPosToLoc(member whichCastMember, nthCharacter)
用途: 此函数决定了字段中所指定的第nthCharacter个字符的位置点。
举例: set location to charPosToLoc(member“Headline”,50)
lineHeight
语法: lineHeight(member whichCasiMember,lineNumber)
用途: 此函数返回了字段中指定行的高度。
举例: set headline=lineHeight(menlber”News”,1)
linePosToLocV
语法: linePosToLocV(member whichCastMember, lineNumber)
用途: 此函数返回了字段中从顶部边缘到指定行的距离。
举例: set startOfString=1inePosToLocV(member,,News”,5)
1ocToCharPos
语法: 1ocToCharPos(member whichCastMember, 1ocation)
用途: 此函数返回在字段中距离指定的1ocation点最近的字符的序号,其中点的坐标是以字段的左上角为基准的。
举例: set n to locToCharPos(melnber"News",point( 100,1000))
1ocVToLinePos
语法: 1ocVToLinePos(member whichCastMember, 1ocV)
用途: 此函数返回距离字段顶部为1ocV的行数。
举例: put locVToLinePos(nleinber”News“, 150) into pageBreak
《宇风多媒体》提供