Hi there,
I have written some code that overcomes the foreign server restriction by using loadmovie rather than loadvariables.
This technique should help all those who have their website on a non-scripted server and can get some additional scripted webspace elsewhere (e.g. 5 MB at http://www.vr9.com)
I have set up some public test site where you can load and save variables, but this approach could also be used for mail scripts
To use it, replace the basic
or similar code sequence by this one for savingCode:status = 'unknown'; loadVariablesNum('http://yoursite.com/somecode.cgi', 0, 'POST') // next frame - blank // next frame: if(status == 'unknown') prevFrame();
The code for loading data is similarCode:// you need an empty "data" movieclip on the stage... function i_am_here() { status = data.status; // fetch status play(); } data.op = 'save'; // you want to save data.pass = 'secret'; // access control data.var1 = value1; // put all vars here that you want to save data.loadMovie('http://www.fontimages.f2s.com/cgi-bin/loadsave.cgi','POST'); stop(); // and possibly show 'server busy' animation
Obviously I cannot save all variables on the internetCode:// you need an empty "data" movieclip on the stage... function i_am_here() { status = data.status; // fetch status, if any var1 = data.var1; // and all vars you are interested in play(); } data.op = 'load'; // not really needed, but seems to help caching headaches data.loadMovie('http://www.fontimages.f2s.com/cgi-bin/loadsave.cgi','POST'); stop(); // and possibly show 'server busy' animationso there is just one text file shared between all testers. If two people try out this script at the same time, variables might simply get mixed up
![]()
![]()
BTW: code will only be released if enough of you guys tell me that it works
Musicman




so there is just one text file shared between all testers. If two people try out this script at the same time, variables might simply get mixed up
Reply With Quote