我正在努力做到这一点: http://livedocs.adobe.com/flex/3/html/help.html?content=transitions_7.html 只需按回此页面底部即可查看我想要的过滤效果
但动态和我做了,n个元素的状态和一切。现在我的问题是如何在左侧制作滚动条,但滚动时不需要影响大面板,所以我只想滚动示例200个面板而不是移动大面板。 我的代码的一部分,我为每个面板放置状态:面板是面板的ArrayList
for(var i:int=0; i<6 ;i++)
// get panel from list panels and set states
{
//addChild((panels.getItemAt(i) as Panel));
(states[i] as State).overrides=[ new SetProperty(panels.getItemAt(i),"x",110), new SetProperty(panels.getItemAt(i),"y",0), new SetProperty(panels.getItemAt(i),"width",widthBigPanel), new SetProperty(panels.getItemAt(i),"height",heightBigPanel)];
var yy:int=0;
for(var k:int=0;k<6;k++)
{
if(k!=i){
(states[i] as State).overrides = (states[i] as State).overrides.concat([ new SetProperty(panels.getItemAt(k),"x",x), new SetProperty(panels.getItemAt(k),"y",yy),
new SetProperty(panels.getItemAt(k),"width",widthPanel), new SetProperty(panels.getItemAt(k),"height",heightPanel)]);
yy+=110;
}
}