on prepareFrame
Usage
-- Lingo syntax
on prepareFrame
statement(s)
end
// JavaScript syntax
function prepareFrame {
statement(s);
}
Description
System message and event handler; contains statements that run immediately before the current
frame is drawn.
Unlike
beginSprite
playhead enters a frame.
The
on prepareFrame
is drawn.
If used in a behavior, the
The
,
, and
go
play
Example
This handler sets the
-- Lingo syntax
on prepareFrame me
sprite(me.spriteNum).locH
end
// JavaScript syntax
function prepareFrame() {
sprite(spriteNum).locH
}
See also
on enterFrame
on prepareMovie
Usage
-- Lingo syntax
on prepareMovie
statement(s)
end
// JavaScript syntax
function prepareMovie() {
statement(s);
}
and
events, a
endSprite
handler is a useful place to change sprite properties before the sprite
on prepareFrame
commands are disabled in an
updateStage
property of the sprite that the behavior is attached to:
locH
= _mouse.mouseH
= _mouse.mouseH;
event is generated each time the
prepareFrame
handler receives the reference
on prepareFrame
.
me
handler.
on prepareMovie
189
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers