- 最后登录
- 2024-6-3
- 注册时间
- 2009-10-16
- 阅读权限
- 100
- 积分
- 18803
  
- 纳金币
- 17488
- 精华
- 1
|
External Control (External Behavior)
Summary
Provides a hook for external scripts to control the presentation.
Category
Latest Behaviors
Author
Gavin Kistner
Difficulty
(Reference)
Time to Complete
5 Minutes
Downloads
Click Here
to download the associated files.
(This document covers version 1.0.2 of the 'External Control' behavior, current as of 2005-Feb-11)
Description
Attach this behavior to the scene to provide a mechanism for external scripts (for example, on a web page) to execute code within the context of the presentation.
Calling the
.internalCommand()
method of the player object will execute the string passed as the first parameter as script code. A few examples:
player.internalCommand( "scene.context.contextTime = 4;", "" );
player.internalCommand( "scene.Layer.Cube.rotation.x += 30;", "" );
player.internalCommand( "scene.overlayLayer.MouseHand.showMotionState( )", "" );
player.internalCommand( "scene.context.nextSlide( )", "" );
|
|