--- In flexcoders@yahoogroups.com, "danj520" <[EMAIL PROTECTED]> wrote:
>
Found the problem myself...you need to specify "itemClick=" instead 
of:
<mx:change>
                                                                
        <![CDATA[
                                                                
        currentState='whateverState';
                                                                
        ]]>

Works everytime...

> I wonder if anyone else has this issue. I have a TileList and when a
> tile is initially clicked, the change event works and evokes the
> State change normally. When I leave the state and return, even 
though
> I select the same tile, it does nothing. But, if I select other
> tiles, the state changes. Here's my code: (BTW, what does "ns2" 
refer
> to in the component name?) Thanks in advance, we all appreciate this
> board.
> 
> <mx:TileList id="lowloss_tl" x="5" y="3" height="203" width="333"
> maxColumns="3" direction="horizontal"
> 
> allowMultipleSelection="false"
> dataProvider="{flexlowlossSrv.lastResult.catalog.product}"
> 
> itemRenderer="renders.connrender" toolTip="Click to see
> connector detail">
> 
> <mx:change>
> 
> <![CDATA[
> 
> currentState='connDetails';
> 
> ]]>
> 
> </mx:change>
> </mx:TileList>
> =======================================================
> <mx:State name="connDetails" basedOn="flex_lowloss">
> <mx:AddChild relativeTo="{canvas3}" position="lastChild">
> <ns2:conntemplate data="{lowloss_tl.selectedItem}" x="1000"
> y="47">
> </ns2:conntemplate>
> </mx:AddChild>
> 
> </mx:State
>


Reply via email to