Hi,
This codes works for what I need, but I’m sure there would be a more efficent way to write it using an array, but I’m not having much luck. Any ideas?
#include "lmc_tween.as"
stop();
s1.onRelease = function() {
s1.colorTo(0x0099FF, 0.5, easeoutSine);
s2.colorTo(0x000000, 0.5, easeoutSine);
s3.colorTo(0x000000, 0.5, easeoutSine);
s4.colorTo(0x000000, 0.5, easeoutSine);
s5.colorTo(0x000000, 0.5, easeoutSine);
}
s2.onRelease = function() {
s1.colorTo(0x000000, 0.5, easeoutSine);
s2.colorTo(0x0099FF, 0.5, easeoutSine);
s3.colorTo(0x000000, 0.5, easeoutSine);
s4.colorTo(0x000000, 0.5, easeoutSine);
s5.colorTo(0x000000, 0.5, easeoutSine);
}
s3.onRelease = function() {
s1.colorTo(0x000000, 0.5, easeoutSine);
s2.colorTo(0x000000, 0.5, easeoutSine);
s3.colorTo(0x0099FF, 0.5, easeoutSine);
s4.colorTo(0x000000, 0.5, easeoutSine);
s5.colorTo(0x000000, 0.5, easeoutSine);
}
s4.onRelease = function() {
s1.colorTo(0x000000, 0.5, easeoutSine);
s2.colorTo(0x000000, 0.5, easeoutSine);
s3.colorTo(0x000000, 0.5, easeoutSine);
s4.colorTo(0x0099FF, 0.5, easeoutSine);
s5.colorTo(0x000000, 0.5, easeoutSine);
}
s5.onRelease = function() {
s1.colorTo(0x000000, 0.5, easeoutSine);
s2.colorTo(0x000000, 0.5, easeoutSine);
s3.colorTo(0x000000, 0.5, easeoutSine);
s4.colorTo(0x000000, 0.5, easeoutSine);
s5.colorTo(0x0099FF, 0.5, easeoutSine);
}
Thank you for any advice.
Paul.