////////////////////////////// Script from Android 2.2 theme /////////////////////////////////////////
var newPopObj = new Object();
newPopObj.onEvent = function (itemNum, itemStr0, itemStr1, itemStr2)
{
_loc2 = itemNum.split("/");
_loc1 = new Array(_loc2, itemStr0, itemStr1, itemStr2);
_loc3 = _loc2[0];
if (_loc3 == 1) // ACTION FOR CALLS
{
_root.popup.btn1.onRelease=function(){
fscommand("launch", "idlePopUp, 1, 2");
}
_root.popup.btn2.onRelease=function(){
_root.popup.gotoAndStop(1);
}
} //end if
if (_loc3 == 2) // ACTION FOR MESSAGES
{
_root.popup.btn1.onRelease=function(){
fscommand("launch", "idle,33");
}
_root.popup.btn2.onRelease=function(){
_root.popup.gotoAndStop(1);
}
}// end if
_root.popup.gotoAndStop(2);
_root.popup.t1.text = _loc2[4]; //read notification
_root.popup.t2.text = _loc2[5]; //close notification
_root.popup.t3.text = _loc1[3]; //time
_root.popup.t4.text = _loc1[1]; //notification
_root.popup.t5.text = itemStr1.split("*#9BUN*#").join(""); //phone number
};
ExtendedEvents.newIdlePopupItem.addListener(newPopObj);
var destroyPopObj = new Object();
destroyPopObj.onEvent = function (itemNum)
{
_root.popup.t4.text = "No notification";
_root.popup.t5.text = "";
_root.popup.gotoAndStop(1);
};
ExtendedEvents.destroyPopupItem.addListener(this.destroyPopObj);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
_forceframerate=true;
var newPopObj = new Object();
newPopObj.onEvent = function (itemNum, itemStr0, itemStr1, itemStr2)
{
_loc2 = itemNum.split("/");
_loc1 = new Array(_loc2, itemStr0, itemStr1, itemStr2);
_loc3 = _loc2[0];
if (_loc3 == 1) // ACTION FOR CALLS
{
_root.popup.btn1.onRelease=function(){
fscommand("launch", "idlePopUp, 1, 2");
}
_root.popup.btn2.onRelease=function(){
_root.popup.gotoAndStop(1);
}
} //end if
if (_loc3 == 2) // ACTION FOR MESSAGES
{
_root.popup.btn1.onRelease=function(){
fscommand("launch", "idle,33");
}
_root.popup.btn2.onRelease=function(){
_root.popup.gotoAndStop(1);
}
}// end if
_root.popup.gotoAndStop(2);
_root.popup.t1.text = _loc2[4]; //read notification
_root.popup.t2.text = _loc2[5]; //close notification
_root.popup.t3.text = _loc1[3]; //time
_root.popup.t4.text = _loc1[1]; //notification
_root.popup.t5.text = itemStr1.split("*#9BUN*#").join(""); //phone number
};
ExtendedEvents.newIdlePopupItem.addListener(newPopObj);
var destroyPopObj = new Object();
destroyPopObj.onEvent = function (itemNum)
{
_root.popup.t4.text = "No notification";
_root.popup.t5.text = "";
_root.popup.gotoAndStop(1);
};
ExtendedEvents.destroyPopupItem.addListener(this.destroyPopObj);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
_forceframerate=true;