title: Actionscript access global / class variable
body: <p>Here is my code:</p>
  
  <pre><code>package
  {
  import flash.display.Sprite;
  
  public class MyClass extends Sprite
  {
      private var abc:String = "123";
      public function MyClass()
      {
  
      }
  
      public function myfunc():void
      {
          dispatch("456");
      }
  
      private function dispatch(abc:String):void
      {
          trace(abc);
      }
  }
  }
  </code></pre>
  
  <p>When call the <code>myfunc()</code> function the trace will return <code>456</code>. How can I get it to access to the global variable?</p>
  
  <p>Thank you.</p>