主题:  Lingo术语遗漏的部分!

5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#462001/12/11 15:10:58
deleteVertex()

Syntax

member(memberRef).deleteVertex(indexToRemove)
deleteVertex(member memberRef, indexToRemove)
Description

Vector shape command; removes an existing vertex of a vector shape cast member in the index position specified.

Example

This line removes the second vertex point in the vector shape Archie:

member("Archie").deleteVertex(2)
See also

addVertex, moveVertex(), originMode, vertexList

编辑历史:[这消息被5D大叔编辑过(编辑时间2001-12-12 09:05:49)]


5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#472001/12/11 15:11:14
digitalVideoTimeScale

Syntax

the digitalVideoTimeScale
Description

System property; determines the time scale, in units per second, that the system uses to track digital video cast members.

For example, if digitalVideoTimeScale is set to:

100—The time scale is 1/100 of a second (and the movie is tracked in 100 units per second).

500—The time scale is 1/500 of a second (and the movie is tracked in 500 units per second).

0—Director uses the time scale of the movie that is currently playing.



Set digitalVideoTimeScale to precisely access tracks by ensuring that the system's time unit for video is a multiple of the digital video's time unit.

This property can be tested and set.

Example

This statement sets the time scale that the system uses to measure digital video to 600 units per second:

the digitalVideoTimeScale to 600



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#482001/12/11 15:11:33
disableImagingTransformation

Syntax

the disableImagingTransformation
Description

Imaging Lingo property; When TRUE, this property prevents Director from automatically taking Stage scrolling or zooming into account when (the stage).image is used. When the disableImagingTransformation property is FALSE, Director will always capture the image of the stage as if the stage window was zoomed at 100% and was not scrolled out from the center of the stage window. Then this property is TRUE, zooming and scrolling of the Stage will affect the appearance of the image captured by using (the stage).image.



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#492001/12/11 15:11:55
EMPTY

Syntax

EMPTY
Description

Character constant; represents the empty string, "", a string with no characters.

Example

This statement erases all characters in the field cast member Notice by setting the field to EMPTY:

member("Notice").text = EMPTY

编辑历史:[这消息被5D大叔编辑过(编辑时间2001-12-12 09:06:23)]


5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#502001/12/11 15:12:08
emulateMultiButtonMouse

Syntax

the emulateMultiButtonMouse
Description

System property; determines whether a movie interprets a mouse click with the Control key pressed on the Macintosh the same as a right mouse click in Windows (TRUE) or not (FALSE).

Right-clicking has no direct Macintosh equivalent.

Setting this property to TRUE lets you provide consistent mouse button responses for cross-platform movies.

Example

The following statement checks if the computer is a Macintosh and if so, sets the emulateMultiButtonMouse property to TRUE:

if the platform contains "Macintosh" then the emulateMultiButtonMouse = TRUE
See also

keyPressed(), rightMouseDown (system property), rightMouseUp (system property)




5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#512001/12/11 15:12:22
enabled

Syntax

the enabled of menuItem whichItem of menu whichMenu
Description

Menu item property; determines whether the menu item specified by whichItem is displayed in plain text and is selectable (TRUE, default) or appears dimmed and is not selectable (FALSE).

The expression whichItem can be either a menu item name or a menu item number. The expression whichMenu can be either a menu name or a menu number.

The enabled property can be tested and set.

Note: Menus are not available in Shockwave

Example

This handler enables or disables all the items in the specified menu. The argument theMenu specifies the menu; the argument Setting specifies TRUE or FALSE. For example, the calling statement ableMenu ("Special", FALSE) disables all the items in the Special menu.

on ableMenu theMenu, vSetting
    set n = the number of menuItems of menu theMenu
    repeat with i = 1 to n
        set the enabled of menuItem i of menu theMenu to vSetting
    end repeat
end ableMenu
See also

name (menu property), number (menus), checkMark, script, number (menu items)



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#522001/12/11 15:12:34
enableHotSpot

Syntax

enableHotSpot(sprite whichQTVRSprite, hotSpotID, trueOrFalse)
Description

QTVR (QuickTime VR) command; determines whether the specified hot spot for the specified QTVR sprite is enabled (TRUE), or disabled (FALSE).



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#532001/12/11 15:12:48
end

Syntax

end
Description

Keyword; marks the end of handlers and multiple-line control structures.



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#542001/12/11 15:13:01
end case

Syntax

end case
Description

Keyword; ends a case statement.

Example

This handler uses the end case keyword to end the case statement:

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
See also

case



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#552001/12/11 15:13:14
endColor

Syntax

the endColor of member whichCastMember
Description

Vector shape cast member property; the ending color of a gradient shape's fill specified as an RGB value.

endColor is only valid when the fillMode is set to #gradient, and the starting color is set with fillColor.

This property can be tested and set.

To see an example of endColor used in a completed movie, see the Vector Shapes movie in the Learning\Lingo Examples folder inside the Director application folder.

See also

color(), fillColor, fillMode



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#562001/12/11 15:13:27
endFrame()

Syntax

sprite(whichSprite).endFrame
Description

Function; returns the frame number of the end frame of the sprite span.

This function is useful in determining the span in the Score of a particular sprite. This function is available only in a frame that contains the sprite. It cannot be applied to sprites in different frames of the movie, nor is it possible to set this value.

Example

This statement output reports the ending frame of the sprite in channel 5 in the Message window:

put sprite(5).endFrame
See also

startFrame



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#572001/12/11 15:13:41
endRecording

Syntax

endRecording
Description

Keyword; ends a Score update session. You can resume control of Score channels through puppetting after the endRecording keyword is issued.

Example

When used in the following handler, the endRecording keyword ends the Score generation session:

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
See also

beginRecording, scriptNum, tweened, updateFrame



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#582001/12/11 15:13:53
end repeat

See also

repeat while, repeat with, repeat with...in list, repeat with...down to



5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#592001/12/11 15:17:50
id3Tags

Syntax

member(whichMember).id3Tags
Description

MP3 sound property; returns the list of ID3 tags from the sound file. These tags include information provided by the sound's author. The id3Tags returns a property list that may include any of the following properties: 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




The id3Tags property can only be tested for MP3 cast members that are inserted into the cast via the Insert > Shockwave Audio command. The member must be preloaded with preLoadBuffer() before the id3Tags property is tested. Id3Tags information is not available from MP3's that are imported via the Import command or for Shockwave Audio (.swa) files.

The id3Tags property cannot be set within Director. However, most MP3 playback and extraction applications offer this capability.

Example

These statements display the ID3 tags of the MP3 cast member Title Song in the Message window:

member("TitleSong").preload()
put member("Title Song").id3Tags
-- [#TALB: "Love Theme", #TCOM: "Jane Smith", #TRDA: "8/19/76"]
See also

preLoadBuffer()

编辑历史:[这消息被5D大叔编辑过(编辑时间2001-12-12 09:06:57)]


5D荣誉斑竹

职务:普通成员
等级:2
金币:10.0
发贴:454
#602001/12/11 15:18:30
interval

语法:

member(whichCursorCastMember).interval
the interval of member whichCursorCastMember
描述:

Cursor cast member property; specifies the interval, in milliseconds (ms), between each frame of the animated color cursor cast member whichCursorCastMember. The default interval is 100 ms.

The cursor interval is independent of the frame rate set for the movie using the tempo channel or the puppetTempo Lingo command.

This property can be tested and set.

例如:

In this sprite script, when the animated color cursor stored in the cast member named Butterfly enters the sprite, the interval is set to 50 ms to speed up the animation. When the cursor leaves the sprite, the interval is reset to 100 ms to slow down the animation.

on mouseEnter
    member("Butterfly").interval = 50
end
on mouseLeave
    member("Butterfly").interval = 100
end