;

PDA

Click to See Complete Forum and Search --> : dynamically changing a variable??


nosrevlah08
04-26-2008, 07:42 AM
Hello all,

I am working on a project that is an existing HTML page that searches for realtors in your area. My job is to create a flash pop-up that appears when you click "more info" next to each realtor. This pop-up will contain more information about the realtor (phone, web address, location, etc.) I have the pop-up completed but here is my dilemma. Below is the variable I created that contains the URL to the XML file. Of course the "more info" link will point to a different URL for each realtor and I am not sure how, or if it is even possible, to "update" this variable below to the appropriate URL. Is it possible to have this variable change "on the fly"??? Thanks in advance.


var xmlFile:String = "http://www.website.com/Resources/GetAgentMarkerDetail.aspx?id=138595C-3735
";

cancerinform
04-26-2008, 10:47 AM
Where are the urls stored, which you want to call?

nosrevlah08
04-26-2008, 08:28 PM
below is an example url. This url contains the xml file for my flash movie to read. The 'id' at the end of the url (highlighted in bold) is what will change for each realtor you click on. So, my movie needs to get that id number first so it can retrieve the right xml file. my customer (backend programmers) is putting the 'id' number in the xml file but that doesn't do much good because I need that number BEFORE so I can add it to the end of my xmlFile variable (see below)......Confusing enough???...........:confused: I hope I explained it better. Thanks.

http://www.website.com/Resources/GetAgentMarkerDetail.aspx?id=138595C-3735

var id;
var xmlFile:String = "http://www.website.com/Resources/GetAgentMarkerDetail.aspx?id="+id;