Hi Guys…
I am trying to access a shared object declared in a certain function, from another function. I am having
difficulty doing so. My code are as follows:
//Constructor code
public function EventTest()
{
var ET:EventTest = new EventTest();
//..Other code
doLocalSO();
}
private function doLocalSO()
{
username_so = SharedObject.getLocal("UserName", "/" );
//... Other code
Connection();
}
private function Connection()
{
rtmpGo = "rtmp://compName/projName";
nc = new NetConnection( );
nc.connect(rtmpGo, ET.doLocalSO.username_so)
}
I am getting the following error:
EventTest.as, Line 69 1120: Access of undefined property ET.
I am bascially trying to acccess ‘username_so’ in the connection function. Where am I going wrong? Hope someone can advise. Thanks.