jporter313
05-05-2008, 09:22 PM
I am trying to set up a variable in my main timeline that I can access from movieclips. However this doesn't seem to be working for some reason. Here's the code that instantiates the variable in the first frame of my main timeline:
var leftTextVar:int = 0;
here's the code within a movieclip that I'm trying to use to access it:
LeftText.text = String(leftTextVar);
When I run this, I get this error:
1120: Access of undefined property leftTextVar.
So can anyone tell me why this isn't working?
var leftTextVar:int = 0;
here's the code within a movieclip that I'm trying to use to access it:
LeftText.text = String(leftTextVar);
When I run this, I get this error:
1120: Access of undefined property leftTextVar.
So can anyone tell me why this isn't working?