Sliders & Images

H Baric hbaric at gmail.com
Tue Aug 5 07:22:53 EDT 2008


"not run the code if it's not needed"

Sorry Eric can you please explain why or when it wouldn't be?

Thanks!

Cheers,
Heather


----- Original Message ----- 
From: "Eric Chatonet" <eric.chatonet at sosmartsoftware.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Tuesday, August 05, 2008 8:48 PM
Subject: Re: Sliders & Images


Mark's idea sounds good because it does not reorganize layers but I
would add a condition to not run the code if it's not needed:

on scrollbarDrag thePos
    if the icon of btn x <> the id of img ("blue" & thePos) then
     set the icon of btn x to the id of img ("blue" & thePos)
   end if
end scrollbarDrag

Le 5 août 08 à 12:45, H Baric a écrit :

> Excellent! Merci!
>
> ----- Original Message -----
> From: "Eric Chatonet" <eric.chatonet at sosmartsoftware.com>
> To: "How to use Revolution" <use-revolution at lists.runrev.com>
> Sent: Tuesday, August 05, 2008 7:37 PM
> Subject: Re: Sliders & Images
>
>
> on scrollbarDrag pPos
>    set the layer of img ("blue" & pPos) to top
> end scrollbarDrag



Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution 




More information about the use-livecode mailing list