0
我創建了TileList的實例,並且還需要更改出現在影片剪輯內的文本字段的Alpha。如何訪問TileList內的動畫片段,以便更新文本阿爾法?訪問AS3中的TileList組件中的動畫片段
var backgroundList:TileList = new TileList();
// Add four images to the TileList instance
backgroundList.addItem({source:"bg1_mc"});
backgroundList.addItem({source:"bg2_mc"});
backgroundList.addItem({source:"bg3_mc"});
backgroundList.addItem({source:"bg4_mc"});
backgroundList.addItem({source:"bg5_mc"});
backgroundList.addItem({source:"bg6_mc"});
backgroundList.addItem({source:"bg7_mc"});
backgroundList.addItem({source:"bg8_mc"});
backgroundList.addItem({source:"bg9_mc"});
backgroundList.addItem({source:"bg10_mc"});
// Set scroll bar direction
backgroundList.direction = ScrollBarDirection.HORIZONTAL;
preview_mc.addChild(backgroundList);
這不起作用:
preview_mc.backgroundList.bg1_mc.text_txt.alpha = 0;
這不起作用:
preview_mc.backgroundList[1].text_txt.alpha = 0;
這不起作用:
var foo=backgroundList.getItemAt(1).source;
foo.text_txt.alpha = 0;
我真的很茫然。我一直在4個小時內到處尋找解決方案,並且TileList組件記錄不完整。
那麼,這是很有趣的知道。謝天謝地,這對我的項目並不重要。我曾計劃將tileList用作預覽窗口,並允許用戶使用更新的文本更新不同屏幕截圖的tilelist中的小縮略圖。 – Livi17