blog.Ring.idv.tw

ActionScript 3.0 Cookbook 嚴重的錯誤~

ActionScript 3.0 Cookbook 嚴重的錯誤~

Recipe 16.10. Pausing and Resuming Video

If you pass the method a true value, the video pauses if it's currently playing, and nothing occurs if the video is already paused:

videoStream.pause(true);

Likewise, if you call the method with a false value, it resumes if the video is paused, and nothing occurs if the video is already playing:

videoStream.pause(false);

上述的內容完全不正確,根據ActionScript 3.0 Language and Components Reference的文件內容,pause()是沒有任何參數的傳遞~ 雖然「暫停」仍然要呼叫pause(),但是「恢復」其實是要呼叫resume()才行,不可不慎。

ActionScript 3.0 Cookbook Errata已經有其它讀者也發現這個錯誤~

2007-05-04 23:50:00

Leave a Comment

Copyright (C) Ching-Shen Chen. All rights reserved.

::: 搜尋 :::

::: 分類 :::

::: Ads :::

::: 最新文章 :::

::: 最新回應 :::

::: 訂閱 :::

Atom feed
Atom Comment