2 Replies Latest reply on Aug 5, 2008 8:48 AM by wtbell3

    Drag 'n Drop Exercise

    wtbell3
      I'm having problems with the drag and drop code. I think I have everything down up to this line:

      20. Assign the zero index of dropData to the selectedRoom property of rf.

      I can get the selectedRoom property of the Form with the id of "rf,: but I'm not sure what is meant by the "zero index of dropData?"

        • 1. Re: Drag 'n Drop Exercise
          bluecircle0816
          I had the same problems, changed some code in
          AdobeODT.mxml:

          1. make dropdata object bindable, not local
          [Bindable]
          private var dropData:Object;
          and in function doDragDrop(): dropData = new Object();

          2. <comp:ReservationForm id="rf" selectedRoom="{dropData[0]}"
          • 2. Re: Drag 'n Drop Exercise
            wtbell3 Level 1
            Thanks, the changes work.

            However, there is a warning when compiled: "Databinding will not be able to detect changes when using square bracket operator. For Array, please use ArrayCollection.getItemAt() instead."

            When I have some time, I'm going to see if I can work that preferred method into the code. Since it works as modified, I'm satisfied.