开发者

Flex spark list, onHover/onClick changes currentState

开发者 https://www.devze.com 2023-03-10 11:24 出处:网络
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.

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

精彩评论

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

关注公众号