ExternalInterface.call() not getting return value

后端 未结 7 1909
鱼传尺愫
鱼传尺愫 2021-01-12 23:39

I have a Javascript function that returns the innerHTML of a div. I am attempting to call this function from Actionscript and store the return value. I know that the Java

7条回答
  •  伪装坚强ぢ
    2021-01-12 23:53

    Try to get the object back from your external interface call without casting it first, and take a look at it in the debugger. If it is not a string, trying to cast it to a string will result in null. This should be a string, but it doesn't hurt to see what you are actually getting back before you try to work with it.

提交回复
热议问题