MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 189

Director scripting reference
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents