Can anyone fix this for me - The movement is working perfectly, but the colorRollOver won’t work in conjunction with it. Thanks!
//Button Rollovers
function colorRoll(instance) {
var colorPalette = new Color(instance);
instance.onRollOver = function() {
colorPalette.setRGB(0x133A5A);
};
instance.onRollOut = function() {
colorPalette.setRGB(0x333333);
};
}
colorRoll(nav.what_but);
colorRoll(nav.how_but);
//
//WHAT BUT
nav.what_but.onPress = function() {
nav.sub_nav._visible = true;
};
//
nav.what_but.onRollOver = function() {
_root.motion1 = -392.9;
_root.motion11 = -360.4;
};
//
nav.what_but.onRollOut = function() {
_root.motion1 = -394.9;
_root.motion11 = -358.4;
};
//