Thanks Daniel.

I was thinking something similar after I wrote my last email, but didnt have the energy to write it up. Basically, if it can draw and scroll separate items (even if they are the same) then it can identify them for the purpose of highlighting and selection. If it couldnt tell the difference between the items it should only show one item. In any case, that would be a strong clue as to what is wrong. But it *can* tell the difference between the items.

I agree, and repeat again. This is a bug.

Hank

On 6/27/06, Daniel Tuppeny <[EMAIL PROTECTED] > wrote:
This is crazy! I'd say this is *definitely* a bug.

> so it has no way to differentiate between them

Yes it does - with the index. Change the list to this:

<mx:List id="myList" dataProvider="{selectedChannels}" width="100"
click="mx.controls.Alert.show(String(myList.selectedIndex ));" />

And then click on the items. It CORRECTLY identifies the selected item,
even though all 4 are the same. It can EASILY be done if it used the
index of the current item, rather than the value (which IMO - is
madness).

It might not be very friendly to have multiple items the same (but there
are places this is very useful), I don't see any reason this shouldn't
be fixed.



-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of ben.clinkinbeard
Sent: 26 June 2006 19:22
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Repost of bug issue over weekend

I don't think this is a bug as I am not sure how it could work any
differently. You are repeatedly adding the same item (the string
"hello") to the list so it has no way to differentiate between them and
uses the newest instance for the rollOver and rollOut actions. If you
want to display the same string multiple times I think you will need to
fill your ArrayCollection with objects and access a property via a
labelFunction.

HTH,
Ben


--- In flexcoders@yahoogroups.com, "hank williams" <[EMAIL PROTECTED]> wrote:
>
> I posted this over the weekend, but I am sure most people, including
adobe,
> did not see it.
>
> I saw that someone else had exactly the same problem in another
thread and
> initially responded to that thread. The discussion about that bug
quickly
> devolved into a critique of the persons programming style, and unless
> I missed something didnt resolve the issue of there being a bug.
>
> I may be doing something wrong but I dont think so. My immediate
issue is to
> find a work around. Since this is a really basic thing I would
imagine that,
> if it is not a known issue (which is hard to imagine) that it will
get some
> attention.
>
> Below describes the problem, along with an mxml code example.
>
> If you take the below text, drop it into an app, You should see four
"hello"
> items in the list. If you move your mouse over the items, you should
> see that only the last item in the list of 4 "hello"s highlights, no
> matter where the mouse is. (at least hopefully you will see it... if
> not
that would
> be*really* wierd)
>
>
> <?xml version="1.0" encoding="utf-8"?> <mx:Canvas
> xmlns:mx="http://www.adobe.com/2006/mxml"
> initialize="initList()">
>
>
>      <mx:Script>
>         <![CDATA[
>             import mx.collections.ArrayCollection;
>
>             [Bindable]
>             private var selectedChannels:ArrayCollection = new
> ArrayCollection();
>
>             private function initList():void{
>                 selectedChannels.addItem("hello");
>                 selectedChannels.addItem("hello");
>                 selectedChannels.addItem("hello");
>                 selectedChannels.addItem("hello");
>             }
>         ]]>
>     </mx:Script>
>
>     <mx:List  dataProvider="{selectedChannels}" width="100"/>
> </mx:Canvas>
>






------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







[Inbound Mail Scanned by MessageLabs]

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/





__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to