PetitPal,
Just to correct you a little...
You don't need to declare variables in ActionScript (in fact I'm not sure if you even can.), just use 'em!
var
Syntax
var variableName1 [= value1] [...,variableNameN [=valueN]];
Arguments
variableName The name of the variable to declare.
value The value being assigned to the variable.
Description
Action; used to declare local variables. If you declare local variables inside a function, the variables are defined for the function and expire at the end of the function call. If variables are not declared inside a block, but the action list was executed with a call action, the variables are local and expire at the end of the current list. If variables are not declared inside a block and the current action list was not executed with the call action, the variables are not local.
...The only thing you might find is that you can't reference a variable in the main movie from inside a movie clip (fi you know what I mean) - to get round this simply tag the level in front of the variable name. So for the variables declared in the main movie use _root.my_variable.
...What do you think you're doing... When using _root.my_variable? You're referencing a variable from a mc!
;-)