Okay, i am trying something different.   I have one movie that loads other
ones, i want to run this connection testing script in the main movie.  So i
am trying this code
============================================
loadMovie("g/home.swf", _root.contentMC);  // a movie that loads ASAP

contentMC.onLoad = myFunction; // run my FUNCTION when the content loads?

function myFunction() {
  var result_lv:LoadVars = new LoadVars();
  result_lv.onLoad = function(success:Boolean) {
     if (success) {
         trace("we got connection");
         _global.url = "http://domain.com/documents";; // set Variable
     } else {
         trace("no connection");
         _global.url = "Documents/";  // set Variable
     }
  };

  var send_lv:LoadVars = new LoadVars();
  send_lv.sendAndLoad(" http://www.google.com";, result_lv, "POST");

}
==============================================================

Hopeing that would set the variable _global.url so i could use that to write
getURL statements in the sub pages?

like
on(release){
getURL(_global.url + "pdf_to_Load.pdf") /*  if online i want it to go to
domain.com/documents/pdf_to_Load.pdf otherwise just the local copy  */
}

Am i just totally off base,   is there a way i can debug and see my global
variables?  cause this way they aren't showing up ever!
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to