If I define a multiframe resource, what's the best way to animate it, with looping, to continuously play through each frame until told to stop. I hoped the simplest approach was correct, as I understood the docs, but it play() on a multiframe resource doesn't seem to do anything more than advance one frame. Sample below:

<canvas width="640" height="480">
   <resource name="spinframes">
      <frame src="640/001.jpg" />
      <frame src="640/002.jpg" />
      <frame src="640/003.jpg" />
      <frame src="640/004.jpg" />
      <frame src="640/005.jpg" />
      <frame src="640/006.jpg" />
  </resource>
   <view resource="spinframes" id="spinview" visible="true" play="true">
   </view>
   <button isdefault="true" text="Play:" onclick="spinview.play()"/>
</canvas>


The way I read the docs I'd expect spinview.play() to animate, playing each frame starting with 001.jpg. Instead all that happens when I spinview.play() is it advances a single frame.

Any recommendations/pointers on how to approach this in OL?

Best,

Roger Howard

Reply via email to