开发者

Flex spark list, onHover/onClick changes currentState

I'm using a Flex4 Spark list with a Tilelayout. In the itemrenderer, 4 states are defined. The state changes on MouseOver and MouseClick, which is not my purpose.

This is some code:

 <s:List id="tileList" click="tileList_itemClick(event)" styleNam开发者_如何学Goe="widgetList">
            <s:layout>
                <s:TileLayout requestedColumnCount="7" />
            </s:layout>
    </s:List> 
    var factory:ClassFactory = new ClassFactory(ExamWidgetRenderer);
    tileList.itemRenderer = factory;
    tileList.dataProvider = items;   

In the itemRenderer:

 <s:states>
        <s:State name="InitialState"/>
        <s:State name="Completed"/>
        <s:State name="Disabled"/>
        <s:State name="Locked"/>
    </s:states>

The states are set by the dataprovider. There is no influence of an MouseEvent.

Has anyone, who also had this problem, solved this?

Thanks!


You could try itautoDrawBackground="false" it may be solve your problem

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜