Need a hand figuring this out. I'm passing data with a "localConnection" but can't access the data outside of the "receiving" function. I tried making the vars global but that didn't work.

Any and all help is appreciated.

Code:
var totalAudio:String;
var songTitel:String;
var artist:String;
var songArtist:String;


qlReceive = new LocalConnection();
qlReceive.ListLoad = function(ql1, ql2, ql3, ql4){    
    totalAudio = ql1;    
    songTitel = ql2;
    artist = ql3;
    songArtist = ql4;    
}
qlReceive.connect("Connection2");

trace (totalAudio);
If I run a trace inside the "qlReceive.ListLoad" function I see that the data is being passed...so that is working correctly.


Thanks,
Kumba