我將xml數據動態添加到三個文本字段中購買循環,然後將text_info動畫片段添加到scroll_box影片剪輯,然後將scroll_box添加到_myCanvas動畫片段。我想掩蓋數據,但我沒有得到結果,但我應該。使用動作腳本3來屏蔽動畫片段中的文本
_myCanvas = getChildByName("myCanvas") as MovieClip;
_myCanvas.height = 369.10;
_myCanvas.width = 596.15;
_myCanvas.x = 114;
_myCanvas.y = 259.05;
var MyClass:Class = ApplicationDomain.currentDomain.getDefinition("MyScrollElement") as Class;
_myScrollElement = new MyClass();
var scroll_box = _myCanvas.addChild(_myScrollElement);
for (i = 0; i < myXML.Row.length(); i++){
var item:text_holder = new text_holder();
scroll_box.addChild(item);
var _data = myXML.Row[i];
//add xml data to text fields
move each textbox to
current_y_right = current_y_right + 131;
item.x = current_x_right;
item.y = current_y_right;
}
var myMask = getChildByName("myMask") as MovieClip;
myMask.height = 369.10;
myMask.width = 596.15;
myMask.x = 114;
myMask.y = 259.05;
_myCanvas.mask = myMask;
但是,正在顯示的文本仍然顯示在遮罩區域之外。任何幫助都會很棒。
感謝您的建議。我將驗證z索引和嵌入字體並返回。 – Denoteone 2011-04-06 13:59:03