function onSample() { var dictionary = scene.paramsDictionary; if (dictionary) { // Get a value from the dictionary. try { var value = dictionary.valueForKey("myKey"); if (value) { // do something. } } catch(err) { // Key not found in dictionary. } } }