We need a bit more information to give you appropriate help. Are you talking about loading this variable from one flash movie into another? If so, you could just load the movie ( loadMovieNum("file.swf", 1, POST); ) and have a conditional statement on the first frame of the newly loaded "file.swf," which would look something like this:
This is assuming that the "number" variable exists on level 0 of your original movie (hence, the _level0).
Hope this helps!