Hi,
I try to assign a value to Object like the following code.
<mx:Script>
<![CDATA[
public var emailData:Object;
public function sendEmaildata():void {
emailData.email="abc@hotmail.com";
}
]]>
</mx:Script>
But I get a error like this " Cannot access a property or method of a null object reference."
I confuse how to set a value to Object,Please help me.
Thanks
M
I try to assign a value to Object like the following code.
<mx:Script>
<![CDATA[
public var emailData:Object;
public function sendEmaildata():void {
emailData.email="abc@hotmail.com";
}
]]>
</mx:Script>
But I get a error like this " Cannot access a property or method of a null object reference."
I confuse how to set a value to Object,Please help me.
Thanks
M