User Guide
callFrame() 253
This statement makes the man walk:
call #walk, m
-- "Animal walking with 2 legs"
This statement makes the man run:
set msg = #run
callAncestor msg, m
-- "Animal running with 2 legs"
This statement creates a second instance of the parent script:
set m2 = new(script "man")
This statement sends a message to the ancestor script for both men:
callAncestor #run,[m,m2]
-- "Animal running with 2 legs"
-- "Animal running with 2 legs"
See also
ancestor, new()
callFrame()
Usage
-- Lingo syntax
spriteObjRef.callFrame(flashFrameNameOrNum)
// JavaScript syntax
spriteObjRef.callFrame(flashFrameNameOrNum);
Description
Command; used to call a series of actions that reside in a frame of a Flash movie sprite.
This command sends a message to the Flash ActionScript engine and triggers the actions to
execute in the Flash movie.
Parameters
flashFrameNameOrNum
Required. A string or number that specifies the name or number of the
frame to call.
Example
This Lingo executes the actions that are attached to frame 10 of the Flash movie in sprite 1:
-- Lingo syntax
sprite(1).callFrame(10)
// JavaScript syntax
sprite(1).callFrame(10);