I am building a debugger tool that I launch in a seperate html file. I know how to send information from the course html to the debugger html.

I currently had the swf load right in the course so I could use an onEnterFrame and just keep checking a set of variables, problem is, I am running out of space. So I thought a new window would be a better option.

I guess my question is, You have to have some sort user interaction to send data to another swf? You can't just make the connection and have it constantly check information.

This is the code I have. Obviously it doesn't work:

Receiving swf:
PHP Code:
// Code in the receiving SWF file
var receiving_lc:LocalConnection = new LocalConnection();
receiving_lc.methodToExecute = function() {

this.onEnterFrame = function(){
orgID_txt.text   _level0.thisOrgID;
topicID_txt.text _level0.simTopicId;
indexID_txt.text _level20.thisIndexID;      
currentSection_txt.text _level20.currentSection;
currentHold_txt.text    _level20.holdCurrentSection;
buttonVisible_txt.text  _level80.next_button._visible+newline+_level80.back_button._visible;
buttonHold_txt.text     _level80.bLastStateNextBtn+newline+_level80.bLastStateBackBtn;
menu_txt.text     _level92.bMenuVisible;
glossary_txt.text _level92.bGlossaryVisible;
library_txt.text  _level92.bLibraryVisible;
regs_txt.text     _level92.bRegsVisible;
notepad_txt.text  _level92.bNotesVisible;
help_txt.text     _level92.bHelpVisible;
feedback_txt.text  _level92.bFeedbackVisible;
indexMenu_txt.text _level92.bIndexMenuVisible;
learnMode_txt.text _level92.bLearnModeVisible;
sound_txt.text _level0.bSoundForCourse+newline+_level0.setSound;
alertMe_txt.text '';
loadSwf_txt.text _level0.bLoadGlsryBtn +newline_level0.bLoadLibryBtn +newline_level0.bLoadRegsBtn +newline_level0.bLoadNotesBtn;
levels_txt.text _level0.statusLoad;
javascript_txt.text _level0.javascriptCall +newline_level0.jsLoadSound;
logoLoad_txt.text _level0.setLogo;

Sending swf:
PHP Code:
this.attachMovie('launchDebugger''debugger_btn',100, {_x:0_y:732});
debugger_btn._alpha 0;
debugger_btn.useHandCursor false;
debugger_btn.onRelease = function(){
            // connection for debugger
var sending_lc:LocalConnection = new LocalConnection();
I am guessing I am going to have to send each individual varabiable as a parameter of the function and then check everytime.

any help or suggestions would be greatly appreciated