Java Reference
In-Depth Information
Figure 5-11. Transitions and interpolators
In Figure 5-11 we see the transitions example running. Clicking one of buttons on the left triggers
the transition, and the radio buttons on the right select which interpolator should be used. The
transitions require a little modification to take an interpolator as an argument. Listing 5-11 shows how
SlideReplace is modified.
Listing 5-11. Modified Parts of SlideReplace
public function
doReplace(nodeToReplace:Node,replacementNode:Node, inter:Interpolator ,doAfter:function()):Voi
var t = Timeline{
keyFrames: [
time: 1s
Search WWH ::

Custom Search