[問題] FMS 呼叫server side function的問題??

看板Flash作者 (揪~~竟,能不能考上?)時間13年前 (2012/04/08 13:21), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
大家好, 我想利用FMS實作一個conference, 在main.asc中寫了一個function, client及server的code如下: client: this.nc.connect("rtmp://localhost/my_app"); this.nc.call("helloworld",null); server: function helloworld(){ trace("helloworld"); } 但卻呼叫不成功, admin console裡的訊息: Sending error message: Method not found (helloworld). why?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.45.7.212

04/08 13:22, , 1F
建立connection是OK的,但呼叫function不行.
04/08 13:22, 1F

04/08 13:24, , 2F
且我不想用client.helloworld=function()這種寫法...
04/08 13:24, 2F

04/10 19:15, , 3F
asc 應該寫錯了 http://goo.gl/pOgr5
04/10 19:15, 3F
文章代碼(AID): #1FWI15Gz (Flash)
文章代碼(AID): #1FWI15Gz (Flash)