Forum

Yampiz Forum

Sharing let knowledge Spreaded, Reading let spirits growth, Creative let culture extended, Let us
  • 禁止廣告文
  • 知識傳播
  • 閱讀
  • 心靈成長
  • 創作
  • 文化傳承
Forum Dictionary / Programming / 網頁/網站程式 /

解決 Flash 無法在原網頁開啟連結

New Subject
Random
Previous
Next
|
解決 Flash 無法在原網頁開啟連結

問題:

今天本想用 Flash 圖片來作一個圖案的連結,於是在圖案的按鈕元件上加上了 ActionScript 的動作,如下

on ( release ) {getURL("/searchfull.php");}

結果是怎麼試,怎麼點就是沒有動作!於是修改了一下目標框架(Frame) 試看看:

on ( release ) {getURL("/searchfull.php","_blank");}

心想該不會目標框架是必填吧!於是改上了原網頁 _self 自身框架:

on ( release ) {getURL("/searchfull.php","_self");}

結果又死了!試呀試訝!只有 IE 是可以動作的,自己最愛的 Chrome, Firefox 都死了!最後爬了一堆垃圾文才找到原因!
解決:

聽說這是發生 Flash Player 9 之後我猜可能是基於安全性的理由,除非網頁端有允許,否則 Flash 對 Script 作存取的動作,也無法透過 Javascript 達成連結的作用,因此才會造成連結無效。所以只要將網頁端設定為允許存取Script 就可以解決了呀!

HTML Code
  1. <objectclassid="clsid:d27cdb6 ....>
  2.   <param ...>
  3.   <param name="movie" value="http://otherdomain.com/exampleContent.swf">
  4.   <param name="allowScriptAccess" value="sameDomain"> 這一行改掉!
  5.   <param name="allowScriptAccess" value="always"> 新增這一行!
  6.   <param ...>
  7.   <embedtype="application/x-shockwave-flash"src=" ...allowScriptAccess="always"></embed> 加上粗體的部份!
  8.   </object> 

  • This is a declared original article : « 解決 Flash 無法在原網頁開啟連結 », to respect the copyright, please do not repost this article without the consent of the author.
  • Keywords : param, 動作, value, searchfull, release, getURL, Flash, 圖案, always, _self, 除非網頁端, 部份, 達成連結, 連結無效, 連結, 這一行改掉, 試看看, 試呀試訝, 解決, 自身框架
0 0
2011-09-01T16:11:00+0000


  • Now, you can post comments by Facebook Account when your Yampiz account was logout or unvariable. whatever, we suggest to post comment by Yampiz Account to get more bounds to join new events of Heyxu
Comment
 
Verify

Facebook Page

QR-Code and APP Launcher

User Guide
This Webpage

In those service tabs, "Scan QRCode, in mobile device" or "Click the button, in this device" to open webpage or APP-related operations.
QRCode
  • Auto Platform
    For better browsing experience, it will auto detects your device to display webpage.
  • Bug Report
    Tell us about the idea, problem and errors you found.
  • Comodo Secure
    The sensitive data transmission adopts by SSL-2048 authenticated encryption.
  • Copyright
    © 2009 YamPiz Digital Inc. & Jaby Group. All rights reserved.
  • Revised Version
    V2.2.197
    29 Oct 2024 (GMT+8)