Shared object question

Hi guys,

I have created a new shared object:

mySharedObject=SharedObject.getLocal(“userData”);

I just would like to know when creating a new stored value, can you assign this value dynamically.
For instance when the user presses a button instead of having:

scorebut.onPress = function(){
                     mySharedObject.data.score = 12;
}

Is it possible getting the value from an XML file? So the variable 12 would not be hard coded.