New Samsung Modding Group
Would you like to react to this message? Create an account in a few clicks or log in to continue.
New Samsung Modding Group

You are not connected. Please login or register

Popup Messages & Calls by The_Poison

Go down  Message [Page 1 of 1]

1Popup Messages & Calls by The_Poison Empty Popup Messages & Calls by The_Poison Fri Aug 19, 2011 7:38 pm

newz93


Admin

////////////////////////////// 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;

https://starmods.forumotion.com

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum