Garry Saddington wrote:
> On Monday 19 January 2009 22:36, Justin Clift wrote:
<snip>
>> Heh, what's the end result you're going for? :)
>>
> A series of images displayed as a continuopus slideshow with dissolve and 
> reveal built in by the simplest means to do it in OpenLaszlo. The only 
> problem I have is iterating through the frames and then restarting at the end 
> of the sequence to produce the loop.

Ok, just thinking out loud here, but is the approach you're thinking of
along the lines of this:

<canvas>
  <resource name="thePics">
    <frame src="temp_pics/Handpainting1.jpg"/>
    <frame src="temp_pics/Handpainting2.jpg"/>
    <frame src="temp_pics/Handpainting3.jpg"/>
    <frame src="temp_pics/Handpainting4.jpg"/>
  </resource>

  <view name="myView" resource="thePics">
    <handler name="oninit">
      // Fade out the first frame, fade in the next
      this.animate("opacity", 0, 1000);
      this.setAttribute('frame', 2);
      this.animate("opacity", 1, 1000);

      // Fade out this frame, then fade in the next
      this.animate("opacity", 0, 1000);
      this.setAttribute('frame', 3);
      this.animate("opacity", 1, 1000);

      // Fade out this frame, then fade in the next
      this.animate("opacity", 0, 1000);
      this.setAttribute('frame', 4);
      this.animate("opacity", 1, 1000);

      // Fade out this frame, then fade in the next
      this.animate("opacity", 0, 1000);
      this.setAttribute('frame', 5);
      this.animate("opacity", 1, 1000);
    </handler>
  </view>
</canvas>

Actually, that prob would all fire in parallel... :/

> Kind Regards
> Garry


-- 
Salasaga  -  Open Source eLearning IDE
              http://www.salasaga.org

Reply via email to