How to use and sample videos


Like keyframes, JavaScript controls can be added on a frame-by-frame basis, mainly to make animations and movies react, and to control DisplayObjects on the timeline.

Animation Tool's JavaScript scope (this) is set to MovieClip, which executes JavaScript, as its scope. Please note that without the scope (this), it will not start correctly.

Other than that, it is no different from normal JavaScript, so it can be run using either the conventional writing method or ES6 writing.