I've tried searching articles on here already and sadly, didn't find anything that helped solve my problem. Sorry if there are articles with the answer I am looking for and I am sure it's a simple answer, I just can't quite get my head around it.
I've got my AS stage document and two AS Class files (MAIN and gameScreen), I am trying to access the 'currentLocation' variable from MAIN inside of the gameScreen.as file.
Everything I try seems to fail and come up with an error.
import Main;
trace(Main.currentLocation);
trace(MovieClip(parent).currentLocation);
My Error that I am getting:
TypeError: Error #1034: Type Coercion failed: cannot convert Main$ to flash.display.MovieClip.
Please let me know where I am going wrong, thanks in advance guys.