Here is my 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);
}
}
}
When call the myfunc() function the trace will return 456. How can I get it to access to the global variable?
Thank you.