sb.animationResume(animationID, data)



Pause a running animation. If an animationID is used to pause the animation, then it must be the return value from sb.animationCreate(). If a name is used to pause an animation, then that name must be the name of the animation specified in Designer. This function can take an optional parameter, data. The data parameter is an object that contains variables for the extra arguments to set.

    animationID      The running animation to pause
    data             An object containing the variables for the extra arguments to set. The variables are:
            id              The animation id used in the case of multiple animations with the same name
            context         The fully qualified name of an object in the model which will be used as the context for the animation

function resumeAnimation(id) {    
    //Resume the animation    

//Example of using ab.animationResume passing animation names.
function cbResumeCur5day() {    
    if(cur5dayToggle == false) {        
    } else {        

//Example of using sb.animationResume with context.
function cb_resume_cur_5day() {    
    var data = {};    
    data.context = "Layer1.mycontrol";    
    sb.animationResume("show_5day", data);
Was this article helpful?
0 out of 0 found this helpful