首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > popupfromflash

popupfromflash

  • 资源大小:5.73 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

This method handles the process of calling a javascript popup using the window.open function from a flash movie (AS3) embedded in a web page - if this fails (due to aggressive popup blocking, e.g. Safari) a normal window is opened, as if a link with target="blank" was clicked. Here"s how it works: The .swf uses ExternalInterface.addCallback to create a path back into flash, allowing a window to be opened through normal (navigateToURL) methods. The .swf uses ExternalInterface.call to run a method of an instance of the PopupFromFlash javascript class on the page that the .swf is embedded in - this function attempts to create a popup using window.open. If it fails, it calls back to the .swf using the path established in the first step. Optionally, a random seed may be used as a unique title for the new window, forcing most browsers to open the link in a new window every time, rather then re-using previously popped w

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 杨波 59分钟前 成为了本站会员

  • ZS 1小时前 成为了本站会员

  • . 1天前 成为了本站会员

  • 奋斗 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 一天不玩浑身难受 2天前 成为了本站会员

  • Aloha 2天前 成为了本站会员

  • 嘻嘻嘻 2天前 成为了本站会员

  • maihaoweilai 2天前 成为了本站会员

  • 紫麟鹿 2天前 成为了本站会员