Archive

Archive for July 5th, 2008

Slideshow for OpenLaszlo

Written on July 5th 2008, 19:07 by sYnie

I had to create a Presentation some days ago. As we needed a little slideshow of pictures, within that presentation, I decided to create a little Sliteshow with OpenLaszlo. Maybe it’s useful for you, so you can use it under the terms of the GPL.

Here is a little Example, created with “Visualslider”:
Visualslider.swf

And this one ist quite the same, but with Slides sliding “circles”:
Visualslider_c.swf

You can click on the Slides, to navigate through them. Also you can use the cursor keys, to do the same. With the key “t” you can toggle between automatical sliding and manual sliding.

And here is the source code:
visualslider.lzx (2009-07-06)

A little Documentation:

<visualslider>

  • Description:
    The container view
  • Attributes:
    currentslide – (readonly) returns the selected slide
    slideduration – the time in ms for the slide-animation
    circular – boolean for circular-sliding
    timerms – the time in ms for automatical sliding
    istimerstarted – (readonly) returns a boolean whether automatical sliding is started or not
  • Methods:
    slideUp() – select next slide
    slideDown() – select previous slide
    slideTo(n) – select the nth slide
    startTimer() – start automatical sliding
    stopTimer() – stop automatical sliding

<visualsliderview>

  • Description:
    A slider-view. Must be placed in <visualslider>
  • Attributes:
    originalwidth – the 100%-width of the view
    originalheight – the 100%-height of the view
    currentslide – (readonly) returns a boolean whether this visualsliderview is selected or not
    shadow – boolean to display a shadow under the visualsliderview
    factor – (readonly) returns a scale-factor with reference to originalwidth and originalheight (useful to scale subviews)
    slidenumber – (readonly) returns the number of the slider
  • Events:
    onstop – Fires when the animation is finished
    onstart – Fires when the animation is started

Here you can find the zipped source code of the example. This may be helpful to create your own slideshow:
visualslider.tar (2009-07-06)