Don't know if this is a bug or not.
If I set my if-else like this then my app not working:
but if I change to this, then it works_level0.btInfo.onPress = function() {
if ( _level0.msgLCD =! _level0.msgInfo){
var tmpMsg = _level0.msgLCD ;
_level0.msgLCD = _level0.msgInfo;
setInterval (function() {_level0.msgLCD = tmpMsg}, 5000);
} else {
trace ("same message")
}
};
is this a bug, or it's me ???_level0.btInfo.onPress = function() {
if ( _level0.msgLCD == _level0.msgInfo){
trace ("same message")
} else {
var tmpMsg = _level0.msgLCD ;
_level0.msgLCD = _level0.msgInfo;
setInterval (function() {_level0.msgLCD = tmpMsg}, 5000);
}
};




Reply With Quote