繁体   English   中英

如何通过Flex的ExternalInterface调用iframe的父html页面的函数(具有要从其中调用函数的swf)?

[英]How to call function of parent html page of an iframe(having swf from which to call function) by ExternalInterface from Flex?

我只想知道是否有可能在与调用方swf所在位置不同的html页面中声明的ExternalInterface调用方法。

示例:我将video.swf放入test.html和另一个页面script.html。 我想从实例化为test.html的video.swf调用在script.html中声明的方法。 可能吗?

通过调用父级,我们将可以访问IFrame上下文。 请致电

ExternalInterface.parent.someFunctoin();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM