User Tools

Site Tools


tips_tricks:callback_as_string

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tips_tricks:callback_as_string [2015/11/26 07:54]
stevegarman
tips_tricks:callback_as_string [2015/11/26 15:57] (current)
Line 3: Line 3:
 <code JavaScript> <code JavaScript>
 var i=7; var i=7;
-var methodname = "txt"+i+"_OnTouch"; +var methodname = "btn" + i + "_OnTouch"; 
-btn.setOnTouch(eval(methodname));+btn7.setOnTouch(eval(methodname));
 </code> </code>
tips_tricks/callback_as_string.1448524490.txt.gz · Last modified: 2015/11/26 15:54 (external edit)