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 6 made on Tuesday November 30, 2010 at 20:57
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
13,006
And...

If you cannot get closure working, you can always store fields on the widget and reference them at time function is called using the 'this' keyword.

CF.widget("BTN_ON_" + (i+1)).myID = actors[i].id;

And inside your onPress function, you can do the following:

function pressHandler()
{
// this keyword points to actual widget inside onPress.
System.print(this.myID);
}

CF.widget("BTN_ON_" + (i+1)).onPress = pressHandler;
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse