Can a URL being loaded have a variable in its address?

in plain english, i'd like to do the following:
xmlLoader.load(new URLRequest("http://www.mysite.com/whatever/whatever/(thirdSegment)"));
where (thirdSegment) is the third segment of whatever URL the current swf file is on. I aready define segment 3 at:
var location:String = ExternalInterface.call('window.location.href.toString');
var locationArray:Array = location.split('/');
var thirdSegment:String = locationArray[3];
any ideas?

incase anyone ever needs this, I figured it out.
I simply define variables
var actualURL = "mysite.com"
var urlSegment = (actualURL)+ (thirdSegment)
so when I load the xml, I do the following:
xmlLoader.load(new URLRequest(urlSegment));

Similar Messages

Maybe you are looking for

  • Creation of tables using JDBC or SQLJ in webdynpro application

    Hi, I am trying to create tables in javadictionary(MaxDB)using my WebDynpro application.I tried creating tables using SQLJ and JDBC.But I was not able to do it.I can select and insert data into already created tables. Whwn I tried creating a table us

  • Wuc-015 Your form must contain the following bean ...

    Hi, I'm having this problem in forms 10g: WUC-015: Your Form must contain the following Bean for this function to be availabe: oracle.forms.webutil.file.FileFunctions I have installed webutil and followed all the steps, I can the run the test form, b

  • YouTube app not logging in

    The YouTube app that came on my iPad will not log into my account. Is this a known issue? I can log into YouTube on the web just fine. Thanks.

  • [CS6] Cuda and firewire output

    There was problem in CS5 outputing video via firewire to DV/HDV deck when CUDA acceleration is enabled. Has this been fixed in CS6?

  • Voice clients per AP

    Hi Experts, I would like to know how many voice clients can be supported in a Cisco 3700 AP?  I have seen a document (Document ID:8103); Q. How many wireless IP telephony handsets are recommended per AP? A. IP telephony network sizing is essential to