Pay for Hesitation: bug

Pages

顯示具有 bug 標籤的文章。 顯示所有文章
顯示具有 bug 標籤的文章。 顯示所有文章

2010年11月10日 星期三

[API Bug] MovieClip Won't Stop on First Frame

碰到一個很詭異的問題,
就是有些movieclip在flex builder 編譯之後執行都正常.
但是export成AIR時, 這些movieclip 並沒有在預期中停在first frame.
(即在.as中做的初始化動作 mc.gotoAndStop(1) 這個動作是無效的,
但gotoAndStop(n), n != 0, 卻是有效的!!)

但若在.fla中將這些movieclip的第一個frame中加上 stop()指令,
它們會正確停下來, 但這造成在控制播放時的困擾.

找了一個小時的bug, 最後發現原來有下面這個issue
http://www.actionscript.org/forums/showthread.php3?t=156151

簡單的說, 就是movieclip在加入stage前,
gotoAndStop(1)是無法讓它停在first frame的.
但原因不詳.

2010年11月2日 星期二

[API Bug] Differences between Sound.length and SoundChannel.position in ActionScript 3

Bug with Sound channel position and mp3s less than 128kbps
Differences between Sound.length and SoundChannel.position in ActionScript 3
soundchannel.position 和 sound.length有误差

2010年3月26日 星期五

Flex Builder 3 制作.swc時的一個bug

切記!!

在制作.swc時,
千萬不要將寫好的 ExClass.as直接移入flex library project 的src目錄下。
否則編譯成.swc後,

在flex builder 中的其它project 即使已將該swc加入build path,
但在import ExClass及使用ExClass下的functions時,不會有任何autocomplete的資訊。
(但事實上compiler是有import的,並且可使用ExClass下的 function)

所以最好的方法是, 在flex library project中先create 一個空的ExClass.as,
然後再把原本已經寫好的ExClass.as 中的codes copy/paste過去.


錯怪它了!!
上面的問題, 是因為ExClass.as 中使用了Vector的instance

Vector本身在Flex Builder3中使用時, 就無任何autocomplete 的資訊.
但沒想到它居然會讓使用它的class (ExClass) 也失去在其它class(import ExClass的class)中的autocomplete資訊.


2010/8/17
Flex Builder 4 沒有上述問題.