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

  1. #1

    Default Re: Using dataSet.items

    Same problem here - I've read a lot posts on many sites offering 'solutions'.
    None of them work. If I've got a DataSet populated by an XMLConnector and I
    want to extract the data from the dataset what's the big deal? Why does no-one
    appear to know how to do this? Yes, it's easy when you manually create an
    array but that's not a real world situation.

    MatchBoxUK Guest

  2. Similar Questions and Discussions

    1. Creating master page where global items arearranged ABOVE local items
      When you create a mater page, obviously all the items are arranged below anything on the individual pages. Is there a way of creating a master...
    2. Selecting items from DataSet items collection that werechanged
      hello. how to choose items from DataSet items collection that were changed (for example added to collection, changed)?
    3. DataSet filterFunc return listed items
      Hi, i'm writing a dataset filter. The user selects and deselcts items in a checkbox group. Each checkbox-button in the group corresponds to a...
    4. possible for publishers to edit Library Items / recurrent items like navigation?
      No, you have to use an include of some sort. If you don't want to use SSI you can do it with Javascript. Search Google with the keyword "Javascript...
    5. BUG in DataBind? After .DataBind there are more DataGrid Items than DataSet Rows!
      Consider: Private Sub BindData(ByRef objDataSet As DataSet) Dim x% = DataGrid_Report.Items.Count() Dim y% = objDataSet.Tables(0).Rows.Count() '...
  3. #2

    Default Re: Using dataSet.items

    I think I've solved the problem - it's all to do with timimg. The DataSet takes
    a while to 'read in' the XML file so you need to give it enough time to do this
    before you begin any operations on the DataSet. Your script should check that
    the XML data has fully loaded into the DataSet before anything else is done.
    Here's what I've come up with:

    ReceiveXMLConnector.trigger();

    listenerObject = new Object(); // Listens for events broadcast by the DataSet

    listenerObject.afterLoaded = function (eventObj)
    {
    // Makes the first item the current item
    DataSet.first();

    // Traces through the properties
    while(DataSet.hasNext())
    {
    // Access the data through the Dataset properties
    trace(DataSet.YOUR PROPERTY GOES HERE);
    DataSet.next();
    }

    }
    DataSet.addEventListener("afterLoaded", listenerObject);

    // LiveDocs
    [url]http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/[/url]
    wwhelp.htm?context=Flash_MX_2004&file=00002301.htm l

    MatchBoxUK Guest

  4. #3

    Default Re: Using dataSet.items

    The Macromedia help pages/files/livedocs aren't very helpful to those new to
    data integration. When you want a solution to a basic issue you don't want to
    spend 3 hours working through a sample project and maybe even having to spend
    months learning CF just to understand the sample!

    MatchBoxUK 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