Script function : AnimateProperty(..)

Hi, :) I have some question on behavior of AnimateProperty()

Hope I can get some answer here :))

I tried below and found

document.Button01.style.animateProperty("x","200px;800px",duration);

=> MS sim seems to animate in linear mode

property.animateProperty( "backgroundFrame", "9;8;7;6;5;4;3;2;1;0", 10 ) ;

=> MS sim seems to animate in descrete mode

Q1) How MS simulator decide which calcMode it should use to animate

Q2) Is there way to specify calcMode in AnimateProperty() of Script




Answer this question

Script function : AnimateProperty(..)

  • NewbieDude

    The spec says whether an animation is discrete or linear or both in Chapter 7. Discrete values can only be animated discretely, but linear values can be animated discretely or linearly.

    Markup has a way to distinguish which to use via the calcMode attribute but the AnimateProperty API does not have any such way.



  • Script function : AnimateProperty(..)