Home > しらべる > VideoDisplayのキューポイントが同じ値で追加できる罠

VideoDisplayのキューポイントが同じ値で追加できる罠

  • Posted by: memorycraft
  • 2008年11月19日 23:43
  • しらべる

FlexでVideoDisplayのキューポイントをActionScriptからセットしたときの話

myVideo.cuePointManager.removeCuePoint(cuePoint);

してもキューポイントが生きている。
なぜかと思って調べてみたら、
まちがって同じname, timeのcuePointを2回セットしてしまっていたのだけど、nameとtimeが同じだと上書きされると勝手に思っていたら、複数登録されていた。。

まぁ、オブジェクト配列なので当たり前といえば当たり前か。

なので、removeCuePointする場合には、
removeCuePointが削除されたキューポイントオブジェクトを返すことを利用して、

var removedPoint:Object = {};
while(removedPoint != null){
    removedPoint = myVideo.cuePointManager.removeCuePoint(cuePoint);
 }

とすると、確実だと思います。


Trackbacks:0

TrackBack URL for this entry
http://www.memorycraft.jp/mt-tb.cgi/83
Listed below are links to weblogs that reference
VideoDisplayのキューポイントが同じ値で追加できる罠 from メモリークラフト

Comments:0

Comment Form

Home > しらべる > VideoDisplayのキューポイントが同じ値で追加できる罠

ページの先頭へ戻る