Hi,
Sounds like you need to check your bindings.
I don't think there is any way possible that the ArrayCollection can become
intelligent and start deleting items without being told to by some outside
force. ;-)
Sounds like it has to do with the;
flightToMarkAsRemoved.flightHasBeenClearedByUser=true
That would be my guess.
Mike
On Fri, Sep 26, 2008 at 10:03 AM, djbrown_rotonews <
[EMAIL PROTECTED]> wrote:
> has anyone run into this problem? The code below is *removing* the
> item from the ArrayCollection when I modify that one attribute on
> the object. And the size of my ArrayCollection isn't increasing
> after the call to addItem() either. the call to getItemIndex is
> working just fine, but the object is removed and the size of the
> ArrayCollection is decreased by 1 when the
> flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
> line is reached.
>
> any ideas?
>
>
> var flightToMarkAsRemoved:SOCAdvisorVO = event.flightToErase;
> var indexOfFlightToEdit:int =
> flightsForStation.getItemIndex(flightToMarkAsRemoved);
> flightToMarkAsRemoved.flightHasBeenClearedByUser=true;
>
> // for some reason, simply setting the attrib to true is causing
> //the item to be removed from the array collection.
> flightsForStation.addItem(flightToMarkAsRemoved);
>
>
>
--
Teoti Graphix, LLC
http://www.teotigraphix.com
Teoti Graphix Blog
http://www.blog.teotigraphix.com
You can find more by solving the problem then by 'asking the question'.