I'm not really clear on why this solves my problem.  But it's worth sharing.  Originally I had:
 
function load_data()
{
var o:Object = new Object();
  o.direction = "receive";
  o.URL = "">  //========================
  var new_object = this.attachMovie("XMLConnector","xml_object",next_depth,o);
  next_depth++;
  //========================
  new_object.addEventListener("result", xml_result);
  new_object.trigger();
}
 
xml_url is set using a set function which then calls load_data.  The above code didn't work.  But it would work if I hard coded the URL into the function.  But I wanted to pass the URL in using FlashVars.  Setting xml_url to a local variable within load_data solved the problem.  The following works:
 
 function load_data()
 {
 //***************
var t:String = xml_url;
 //***************
  var o:Object = new Object();
  o.direction = "receive";
  o.URL = "">  //========================
  var new_object = this.attachMovie("XMLConnector","xml_object",next_depth,o);
  next_depth++;
  //========================
  new_object.addEventListener("result", xml_result);
  new_object.trigger();
  
 }
 
I have no idea why this works when the other doesn't.  If anyone knows I would appreciate your input.
 
Bill Lane


>>> [EMAIL PROTECTED] 05/19/05 9:04 am >>>
Hi Chris,
 
thanks for the suggestion but it didn't make any difference.  I'm going to try just passing in a simple string value (ie area) and then using some static xml with the actually script path.  Probably more secure than having the script path in the html anyway.  But I can't see why this isn't working which is very frustrating.
 
Bill Lane 

>>> [EMAIL PROTECTED] 05/18/05 5:54 pm >>>
What happends when include the full url of the page (http://...)?

---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to fugli as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to