hi all

simply I created new flash document,
.. created new movieclip named "ball" with instance name "ball" in the stage
in the ball movieclip I put this code in the actionscript panel

Code:
var color = "red";
I want to use this variable in the main stage

i used

Code:
var ballcolor= ball.color;
trace (ballcolor);
but didn't work and the result is "undefined"