incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Campos <jonbcam...@gmail.com>
Subject Re: ArrayList itemUpdateHandler Change
Date Tue, 10 Apr 2012 14:49:38 GMT
On Tue, Apr 10, 2012 at 9:16 AM, Michael A. Labriola <
labriola@digitalprimates.net> wrote:

> var objEvent:PropertyChangeEvent = PropertyChangeEvent(event.clone());
>                  //When itemUpdated is called, there is no event target.
> This means getItemIndex returns a -1
>                  //Since this was originally cast as a uint, this caused
> many strange results. Changing it to
>                  //an int to be consistent throughout other uses of this
> event
>            var index:int = getItemIndex(event.target);
>            objEvent.property = index.toString() + "." + event.property;
>            dispatchEvent(objEvent);
>

I would agree with this change as uints also are very error prone on a
variety of air targets and ints are uniform across platforms.

-- 
Jonathan Campos

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message