On Monday 19 January 2009 23:21, Justin Clift wrote:
> 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... :/
You could possibly use an LZ timer but how do you check for the end of the
sequence?
Garry