Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
List 在flex4中的布局之间切换_List_Apache Flex_Flex4_Tile_Effect - Fatal编程技术网

List 在flex4中的布局之间切换

List 在flex4中的布局之间切换,list,apache-flex,flex4,tile,effect,List,Apache Flex,Flex4,Tile,Effect,我的列表如下所示,其中有两种布局,我在这两种布局之间切换: <s:List id="list" width="100%" height="100%" dataProvider="{ recordingsShown }" itemRenderer.CoverflowState="components.VideoItemRenderer" itemRenderer.TileState="components.VideoItemR

我的列表如下所示,其中有两种布局,我在这两种布局之间切换:

<s:List id="list" width="100%" height="100%" dataProvider="{ recordingsShown }"
                itemRenderer.CoverflowState="components.VideoItemRenderer" 
                itemRenderer.TileState="components.VideoItemRenderer2"
                selectedIndex="0">

 <s:layout.CoverflowState>
    <Layouts:CoverflowLayout id="coverflow" selectedIndex="{ list.selectedIndex }"
                                         horizontalDistance="103" selectedItemProximity="75"
                                         depthDistance="1" elementRotation="-70" focalLength="300"
                                         perspectiveProjectionX="-1" perspectiveProjectionY="-1"/>
 </s:layout.CoverflowState>

 <s:layout.TileState>

    <s:TileLayout orientation="columns" columnAlign="justifyUsingWidth" rowAlign="justifyUsingHeight"
                              requestedColumnCount="-1"
                              requestedRowCount="-1"
                              paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="5"
                              verticalGap="10" horizontalGap="10"/>

 </s:layout.TileState>
</s:List>

1) 问题是,我得到了

错误#1009:无法访问空对象引用的属性或方法

at Layouts::CoverflowLayout/animationTickHandler()[行:201]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

当我从coverflow切换到tilelayout时,我想这是因为coverflow中使用的效果尚未结束,我切换到了其他布局,有什么帮助吗

2) 我怎样才能在它们之间使用任何过渡效果,从而使它们之间的切换更加“甜蜜”


提前谢谢

问题可能是列表中的某些部分尚未创建

使用状态时,默认情况下,将在第一次切换到此状态时创建组件

尝试使用创建策略