# Referencing variables/objects from external FLA files

**URL:** <https://forum.kirupa.com/t/referencing-variables-objects-from-external-fla-files/316737>\
**Category:** Uncategorized\
**Created:** [December 1, 2010, 9:29am UTC](https://forum.kirupa.com/t/referencing-variables-objects-from-external-fla-files/316737 "2010-12-01T09:29:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glisando](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@glisando](https://forum.kirupa.com/u/glisando)\
**Post date:** [December 1, 2010, 9:29am UTC](https://forum.kirupa.com/t/referencing-variables-objects-from-external-fla-files/316737/1 "2010-12-01T09:29:45Z")

</div>

Hi Guys…

I am trying to display in ‘Reciever.swf’ the value a shared object updated in ‘TextSO.swf’ . I have run into some problems. The following is my code:

```auto
 
package 
{
import flash.events.SyncEvent;
import flash.events.NetStatusEvent;
import flash.events.MouseEvent;
import flash.net.SharedObject;
import flash.net.NetConnection;
import flash.display.Sprite;
import TextSO;
 
public class Reciever extends Sprite
{
  private var rtmpGo:String;
  private var nc:NetConnection;
  private var ts:TextSO;  
 
  public function Reciever()
  {
 
   ts = new TextSO();   
   rtmpGo = "rtmp:/basicSO";
   nc = new NetConnection( );   
   nc.connect(rtmpGo);
   display();
  }
  private function display()
  {
 
   lblContainer.text = ts.text_so.data.msg;   
  }
 
}
}
 

```

I am getting a ‘1178: Attempted access of inaccessible property text\_so through a reference with static type TextSO.’ I don’t understand how TexSO is a static type? Hope someone can advise. Thanks.
