Version

play Method

Calls fade.play(params) and slide.play(params) according to properties of this class. If hide is false or not set, then that method also make element visible. If hide is true and both fade and slide are null or both do not have duration, then that method also hides element.
Syntax
ASP.NET Ajax Javascript (Specification) 
function play( 
   elem : {DomElement},
   show : Boolean,
   up : Boolean,
   right : Boolean,
   stopListnerObj : {Any},
   stopListnerFnc : Function,
   customObj : {Any}
) : Boolean;
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfSlideFadeAnimation.play({DomElement},Boolean,Boolean,Boolean,{Any},Function,{Any});

Parameters

elem
Reference to html element. If elem is missing or null, then current slide and fade animations are disposed.
show
True: request to show element, false: hide element.
up
True: request to slide from bottom to up.
right
True: request to slide from right to left.
stopListnerObj
Object which has member stopListnerFnc.
stopListnerFnc
Member function of stopListnerObj, which is called on stop of animation.
customObj
Second param in stopListnerFnc. Note: first param is same as "show".

Return Value

True: animation was started, false: no animation (missing element or no duration).
See Also