View Single Post
  #2 (permalink)  
Old 06-03-2009, 07:43 AM
Destroy All Monsters Destroy All Monsters is offline
Junior Member
 
Join Date: May 2009
Location: UK
Posts: 9
Default

Just wanted to add that I've figured out the answer to my second question. I can store the variables I need to pass in a text file and then load it with DataFile.load. This means I can use a script to generate the text file and for inclusion before outputting the EXE. So my code now looks like this:

getAdditionalFile();

var datafile = getAdditionalFile("module-02-pain.txt");
DataFile.load(datafile);

function swfkitSetupVars() {
FlashPlayer.setVariable("_root.xmlFile", xmlFile);
FlashPlayer.setVariable("_root.sectionUrl", sectionUrl);
FlashPlayer.setVariable("_root.moduleUrl", moduleUrl);
FlashPlayer.setVariable("_root.sectionName", sectionName);
FlashPlayer.setVariable("_root.moduleNumber", moduleNumber);
FlashPlayer.setVariable("_root.moduleName", moduleName);
}

return true;

Again, this works with no problems in SWFKit 3.4 but not in SWFKit Pro 2.2. If you can help me resolve this problem I'd really appreciate it as it's the only obstacle left in this project and the only thing preventing a purchase of SWFKit Online.
__________________
Thanks!

Jonathan Porter
Destroy All Monsters
Reply With Quote