Add a 'beep' in your scrollbarDrag handler and you will hear
continuous beeps even if the thumb position does not actually change:
So adding a condition to check if the image has to change is a good
idea because without it you'll change the image continuously even if
it's not needed:
This means CPU use, screen refresh, etc. even if you don't notice
anything.
Just good practice :-)
Le 5 août 08 à 13:22, H Baric a écrit :
"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" <[EMAIL PROTECTED]>
To: "How to use Revolution" <use-revolution@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" <[EMAIL PROTECTED]>
To: "How to use Revolution" <use-revolution@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: [EMAIL PROTECTED]/
----------------------------------------------------------------
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution