Enabling/Disabling animation

648
0
03-13-2012 02:54 AM
demdeberanz
New Contributor II
Hi everybody,
   I need to dynamically play and stop an animation on a graphic symbol (like a blinking dot). For example in the main style sheet I disable the animation (I'm working on mozilla firefox) using the following instructions:
       
            -moz-animation-iteration-count:0;

When I need to enable it I use:

            dojo.byId('mapBox_graphics_layer').style.MozAnimationIterationCount = "infinite";

but it doesn't work. Better, it works if, for example, I put it into init() function , but when I put it into a callback function (result of performing a queryTask) it seems to be irrelevant and the animation doesn't start.

Does anyone know this problem?

Thank you everybody.
0 Kudos
0 Replies