Variable from .fla to .as

So, I have a Flash file, and and as file. The as file handles most of the actions. But I need to send a variable from the Flash file to the as file, and I’m not sure how to do this. I’m used an .as file to affect four different .fla files. It would make my life much easier if there was an easy way to tell which .fla file I’m using with a switch or if statement, that grabs a variable from one of the .fla’s

I tried this, but the variable thisFLAFile returns null.

define the same variable on those four FLAs like this… I mean define the same variable with different values on those files…

var thisFLAFile:String = “fileA.fla”;

var thisFLAFile:String = “fileB.fla”;

var thisFLAFile:String = “fileC.fla”;

var thisFLAFile:String = “fileD.fla”;

and in your AS file, you can do something like this…

switch (thisFLAFile)
{
case “fileA.fla”:
trace(“fileA”);
break;


}