07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADOBE DIRECTOR BASICS<br />

3D: Controlling action<br />

Alternatively, you can add a level of indirection and create a Registered Script Manager object to deal with registering<br />

and unregistering scripts. This object can store a look-up table of which scripts and handlers are registered for which<br />

events for which models. If you need to unregister just one handler for one event, your Registered Script Manager object<br />

can call unregisterAllEvents(), and then restore all the other registrations by referring to its look-up table.<br />

Callback parameters<br />

For details of the callback events created by the collision modifier, see “Collision modifier” on page 280. For details of<br />

the event created by the bonesPlayer and keyframePlayer modifiers see, “Animation event callback” on page 358. For<br />

details of the event created by the bonesPlayer and keyframePlayer modifiers, see “timeMS event callback” on<br />

page 359.<br />

Animation event callback<br />

To test the #animationStarted and #animationEnded 3D events, download and launch the movie<br />

AnimationEvents.dir. Check the output in the Message window.<br />

Checking the parameters for registered animation events<br />

The AnimationEvents.dir movie contains two 3D members. Both contain a single bones motion. The behavior on the<br />

3D sprite uses cloneMotionFromCastMember() to copy the motion from the second 3D member into the member<br />

used by the 3D sprite.<br />

Last updated 8/26/2011<br />

358

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!