[問題] NetStream.client
書上對於NetStream.client中的client屬性寫的有點模糊...
似乎是要處理 onMetaData 的問題,但是還是不是很明白...
我分別在兩本書上看到不同寫法:
1. NetStream.client={};
NetStream.client.onMetaData = function(info:Object){
var duration:Number = info.duration;
2. NetStream.client=this;
這兩個寫法測試的結果是都不會跑出 onMetaData 的錯誤問題
但是小弟我還是不知道為何要這樣寫,分別有什麼意思呢?
還有,第一種寫法如果只打 NetStream.client={}; 這一行,好像也不會有錯誤發生...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.230.31.174
※ 編輯: heavenbetula 來自: 61.230.31.174 (03/11 21:15)
※ 編輯: heavenbetula 來自: 61.230.31.174 (03/11 22:00)
→
03/11 22:05, , 1F
03/11 22:05, 1F
→
03/11 22:05, , 2F
03/11 22:05, 2F
→
03/11 22:06, , 3F
03/11 22:06, 3F
→
03/11 22:07, , 4F
03/11 22:07, 4F
→
03/11 22:07, , 5F
03/11 22:07, 5F
→
03/11 22:08, , 6F
03/11 22:08, 6F
→
03/11 23:03, , 7F
03/11 23:03, 7F
推
03/12 01:02, , 8F
03/12 01:02, 8F
→
03/12 01:02, , 9F
03/12 01:02, 9F
→
03/12 01:03, , 10F
03/12 01:03, 10F
→
03/12 01:04, , 11F
03/12 01:04, 11F
→
03/12 01:04, , 12F
03/12 01:04, 12F
→
03/12 01:05, , 13F
03/12 01:05, 13F
→
03/12 18:59, , 14F
03/12 18:59, 14F
→
03/12 19:00, , 15F
03/12 19:00, 15F
推
03/12 21:30, , 16F
03/12 21:30, 16F
→
03/12 21:51, , 17F
03/12 21:51, 17F
→
03/12 21:53, , 18F
03/12 21:53, 18F
→
03/12 21:54, , 19F
03/12 21:54, 19F
推
03/12 22:59, , 20F
03/12 22:59, 20F
→
03/13 19:07, , 21F
03/13 19:07, 21F
→
03/13 19:09, , 22F
03/13 19:09, 22F
→
03/13 19:11, , 23F
03/13 19:11, 23F
→
03/13 19:11, , 24F
03/13 19:11, 24F
推
04/17 17:33, , 25F
04/17 17:33, 25F
→
08/12 20:28, , 26F
08/12 20:28, 26F
Flash 近期熱門文章
PTT數位生活區 即時熱門文章