我發現,在<embed>
標籤設置wmode
attribute到window
(它被設置爲transparent
之前)解決了這個問題。爲什麼這會導致組合框出現問題(只是組合框,afaict),我不知道,但我很高興我解決了這個問題。
編輯:我在代碼found a workaround,所以我仍然能夠使用透明的wmode。顯然,問題在於Flash播放器在wmode透明時不會派發Event.RENDER事件。訣竅是在關鍵時刻手動分發該事件。這是我的解決方案:
private function renderStage(e:Event=null){
stage.dispatchEvent(new Event(Event.RENDER));
}
myComboBox.addEventListener(ListEvent.ITEM_CLICK, renderStage);
myComboBox.addEventListener(ListEvent.ITEM_DOUBLE_CLICK, renderStage);
myComboBox.addEventListener(ListEvent.ITEM_ROLL_OUT, renderStage);
myComboBox.addEventListener(ListEvent.ITEM_ROLL_OVER, renderStage);
myComboBox.addEventListener(Event.CHANGE, renderStage);
這似乎工作。
你可以上傳一個例子嗎 – Josh 2010-01-04 15:06:35