5 Replies Latest reply on Jun 2, 2010 12:38 PM by mumcs01

    Cannot access a property or method of a null object reference

    mumcs01 Level 1

      All I want to do is add the word 'it' to an object with a property name of 'action'. From within  a function I'm doing the following... I have done this MANY times before, and all aI get now is a 'Cannot access a property or method of a null object reference. I've now spent two days trying to fix this. HELP! I know subnetToSend = { action : 'it' } would work, but I can't do that as it overwrites any other properties already in the subnetToSend Object. I"m not showing everything here, but I will be adding other things to the subnetToSend object...... public function publishvalues():void         {     var subnetToSend:Object;     subnetToSend.action = 'it';     }