Need help with xml and combo boxes

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Need help with xml and combo boxes

    Basically what im doing is a ui for a electronic book.

    The book is broken into 3 parts and each part has its own set of chapters.

    My xml schema is pasted below.

    And what i would like is to have two comboBoxes .

    The first one would list the names of the parts available, ie.. Part I, Part
    II, Part III.

    the Second one would list the chapters avalable under that part. For example,
    If Part i, is sected then the secodn combo box would list chapter 1-5, while if
    the second part is selected, the second combo box would list chapters 6-10.

    Im using flash 8 pro, and the xmlconnector and comboboxes. Maybe there is an
    easier way. PLEASE HALLP! This is driving me nuts.

    XML Schema:

    --------------------------------------------------------------------------------
    --------------------------------------------------------


    <?xml version="1.0" encoding="ISO-8859-1"?>
    <contents>
    <part name="Part I">
    <chapter name="Chapter 1: This is chapter 1" path="video/chapter.swf"
    description="This 1 description." />
    <chapter name="Chapter 2: This is chapter 2" path="video/chapter1.swf"
    description="This 2 description." />
    <chapter name="Chapter 3: This is chapter 3" path="video/chapter2.swf"
    description="This 3 description. />
    <chapter name="Chapter 4: This is chapter 4" path="video/chapter3.swf"
    description="This 4 description. />
    <chapter name="Chapter 5: This is chapter 5" path="video/chapter4.swf"
    description="This 5 description." />
    </part>
    <part name="Part II">
    <chapter name="Chapter 6: This is chapter 6" path="video/chapter.swf"
    description="This 6 description." />
    <chapter name="Chapter 7: This is chapter 7" path="video/chapter1.swf"
    description="This 7 description." />
    <chapter name="Chapter 8: This is chapter 8" path="video/chapter2.swf"
    description="This 8 description." />
    <chapter name="Chapter 9: This is chapter 9" path="video/chapter3.swf"
    description="This 9 description." />
    <chapter name="Chapter 10: This is chapter 10" path="video/chapter4.swf"
    description="This 10 description." />
    </part>
    <part name="Part III">
    <chapter name="Chapter 11: Test 1" path="video/chapter.swf"
    description="This 11 description." />
    <chapter name="Chapter 12: Test 2" path="video/chapter1.swf"
    description="This 12 description." />
    <chapter name="Chapter 13: Test 3" path="video/chapter2.swf"
    description="This 13 description." />
    <chapter name="Chapter 14: Test 4" path="video/chapter3.swf"
    description="This 14 description." />
    <chapter name="Chapter 15: Test 5" path="video/chapter4.swf"
    description="This 15 description." />
    </part>
    </contents>

    Ibis Fernandez Guest

  2. Similar Questions and Discussions

    1. Combo boxes
      I have a combo box on one form with has a row source of 2 fields, an item number and item name. I item number width is 0 so it only displays the...
    2. Combo Boxes do not work? WHY! :-)
      Alright... I have an issue with some combo boxes absolutely refusing to populate in my movie. You can visit...
    3. Synchronizing two combo boxes
      I wish to synchronizing two combo boxes. I have try the following solution: I have made 2 Combo boxes. The first combo boxes name is cbofirst...
    4. Two combo boxes on a form
      I would do a couple of things differently. First, rename your controls. is a lot more recognizable than , especially if you want to use it as...
    5. Populating several combo boxes
      I have a form that will have a combo box repeated several times (continuous form, one for each record), it's going to cause a problem if each has to...
  3. #2

    Default Re: Need help with xml and combo boxes

    Hi

    I have just done this for another guy in this forum, I can send you an example
    using UI Components - 3 Comboboxes each shows the sub-options of its parent,
    one more than what you want. The secret is in the construct of the XML file
    and how this creates the correct Schema for binding.

    Post me an email address and I can send you the files.

    The Feldkircher Guest

  4. #3

    Default Re: Need help with xml and combo boxes

    I trully appreciate the offfer, my email addres is "ibis at cinestarfilmworks
    dot com", speeled phonetically due to smap harvesting bot, but just replace the
    at with @ and the dot with a .

    Thanks again for yer help, it's much appreciated.

    Ibis Fernandez Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139