A "simple" slideshow

Klaus Major k_major at os.surf2000.de
Wed Aug 14 15:06:01 EDT 2002


Bonsoir Aurelian,

> if i understand you right, there are about 30 cards (more or less) and 
> each contains
> a different image ?
>
> In this case you can simply script this:
>
> Put this into the stack-script:
>
>
> global the_advancing
> ## This global will store the id of the pendingmessage
> ## (see there !) "advanceslide"
> ## This way you can cancel that message from being delivered
> ## by cancelling this id (global)
>
> on openCard
>    send advanceSlide to me in 2 seconds
>    ## Or whatever interval will do for you
>    global the_advancing
>    put the result into the_advancing
>    ## See above...
> end openCard
>
> on advanceSlide
>     visual dissolve
>     go next cd
>     ## Will do exactly what you need
>     ## and will even cycle forever when reaching the
>     ## last card in your slideshow ;-)
> end advanceSlide
>
> on mouseup
>    global the_advancing
>    cancel the_advancing
>    ## Stop the slideshow by just clicking anywhere in the stack
> end mouseup
>
> ## And you still have 5 statements left in THIS script :-)
>
> Hope that helps.
>
> Au revoir


to make it clear:

That is all in the stack-script, no other scripts necessary !!!

A bientot

Klaus Major
k_major at os.surf2000.de




More information about the use-livecode mailing list