ListBox Component dynamically selecting xml source from user selection in another listbox

Posted on 2004-11-24
Last Modified: 2010-04-03
I have a three column layout.  Column one is a list box. Selecting an item from column one, presents the user with a selection of sub-items in listbox two (column two of the layout).  The xml data I am using for options/sub options is extrememly large and cannot be reformatted (I can't redevelop the node structure with further sub nodes etc...)  I want to assign the url of the xml connector for column two dynamically using actionscript based on the users selection from the first list box - or something else which will achieve the same effect(!) I've tried various actionscript in the on change() handler of the first column, but nothing seems to work.

instance name of listbox to be changed - selectList
instance name of xml connecter - dynamicXML
instance name of listbox 1 (column one) - serviceList

I have set up the xml connector for column two with an initial URL and the xml is triggered and sat in frame one of the movie with all other actionscript and data connections for the movie.

I'm using flash mx 2004 Professional, v7.2  on Mac os X 10.3.6.

Please help!
Question by:nelmat
    LVL 9

    Expert Comment


    Can you attach a snippet of your XML file structure?
    LVL 27

    Accepted Solution

    this is a possible solution:

    var responder:Object = new Object();
    responder.change = function(evt:Object):Void
          dynamicXML.URL =;
    responder.result = function(evt:Object):Void
          // do what you want with loaded data
    selectList.addEventListener("change", responder);
    dynamicXML.addEventListener("result", responder);

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now