mp Library Method
Short Description: Perform function on all elements of set
Signature: m.mp (f,d)
Class: taccglMulti Class
Performs function f on all elements of the current animation set.
f must be a javascript function (a,i,d,m) expecting 4 parameters.
The function receives as a the transition to process.
i is an integer giving the ordinal number of a in
the current animation set. As d the parameter d of
the mp method is passed through. m is the current animation
set.
Examples
var a=taccgl.mTagName("a").paint(). mp(function(a){a.to(a.x,a.y,-1000)}).bgColor("red"). hide(). visAtEnd(). start(); | RUN |
WebGL™ is a trademark of the Khronos Group Inc.
|