how to access variables in other classes in as2
I am trying to access variables defined in other class of external swf.
loadMovieNum("moolga.swf", 0);
keylistener = new Object();
keylistener.onKeyDown = function ()
{
if (Key.getCode() == 49)
{
_root.drops = 100;
} // end if
};
Key.addListener(keylistener);
this is the code I am using, I can access variables defined in mainmovie but where as when variables defined in other classes cannot.
can anyone tell me how to do this.