Topic: Set Configuration Data from Chumby
Hi-
I have been attempting to use the _chumby_set_widget_parameters()
function to redefine the data initially set by a configuration widget.
//IN CONFIGURATION WIDGET
function allocateStorage() {
_root.params['x0'] = -5; //acts as a sentinel
_chumby_set_widget_parameters(doQuit,_root.params);
}
allocateStorage();
/*----------------------------------------*/
//IN CHUMBY WIDGET
function redefineStorage() {
var param:Array= new Array();
oldX0=x0;
param['x0'] = x0 = Math.floor(Math.random()*100); //a positive number 0-99
_chumby_set_widget_parameters(showSaved,param);
}
redefineStorage();
Each time this is run I receive back the data set in the original configuration data and have
not been able to overwrite it even though the callback function has been fired.
Any thoughts? Am I missing something? Thanks-