私はこれを作ろうとしています: 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;
}
}