开发者

Is there any way to determine which movie an ExternalInterface.call came from?

开发者 https://www.devze.com 2023-04-05 17:34 出处:网络
On my page, I\'m going to embed multiple Flash files that use ExternalInterface to communicate ba开发者_StackOverflowck to the page. When the page receives the ExternalInterface calls, is there any bu

On my page, I'm going to embed multiple Flash files that use ExternalInterface to communicate ba开发者_StackOverflowck to the page. When the page receives the ExternalInterface calls, is there any built-in way to determine which swf the call came from?

I don't mind giving each movie a guid FlashVar and attaching that to each ExternalInterface call, but I don't want to duplicate more tested functionality.


What you're think is really your only solution. Passing unique IDs to the SWFs is the only way.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号