Javascript + Flash...how do I get my variable?

I am using flashobject.SetVariable() in my javascript to set a variable in a flash document. If I set the “var” (eww) field of one of my textboxes to the variable name, everything works fine, the variable is received and is displayed in the textbox. If I try this code (instead of using the “var” box), nothing happens…how can I get my variable without using that “var” field?


var strStatus:String = "0";

_root.onEnterFrame = function() {
  if (strStatus != "0") {
    txtStatus.text = strStatus;
  }
}