Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 3 made on Thursday August 26, 2010 at 07:46
BluPhenix
Long Time Member
Joined:
Posts:
December 2008
371
Simpler approach:
have 2 buttons one over another one with the play and the other with the pause symbol, one tagged "PLAY", the other "PAUSE" each with it's ir code.

You can do it like this:

var play = widget("PLAY"),
pause = widget("PAUSE");

pause.visible = false;
play.visible = true;

play.onRelease = function () {
play.visible = false;
pause.visible = true;
this.scheduleActions();
}

pause.onRelease = function () {
pause.visible = false;
play.visible = true;
this.scheduleActions();
}


You'll get two alternating buttons each with it's IR codes. Hope it helps.


Hosting Services by ipHouse