A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: dynamically changing a variable??

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Location
    Knoxville, Tennessee
    Posts
    4

    dynamically changing a variable??

    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.
    Code:
    var xmlFile:String = "http://www.website.com/Resources/GetAgentMarkerDetail.aspx?id=138595C-3735
    ";

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Where are the urls stored, which you want to call?
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Junior Member
    Join Date
    Apr 2008
    Location
    Knoxville, Tennessee
    Posts
    4
    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???........... I hope I explained it better. Thanks.

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

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center