Flash CS4でビデオプレーヤーを使用しています。私は、ユーザーがフラッシュオブジェクト上にマウスを移動すると再生コントロールが表示され、ユーザーがフラッシュオブジェクトからマウスを動かすとコントロールが消えるようにプレーヤーを構築しようとしています。アクションスクリプトonMouseOutリスナーがInternet Explorer 8で完全に動作していない
私はいくつかのコードをまとめて、すべてのブラウザ、つまりInternet Explorerで動作させることができました。 Flashオブジェクトの左側にマウスをゆっくり動かすだけですが、それはうまく動作します。
私はかなり多くのGoogleが答えを探していますが、同様の問題を抱えている人を見つけることはできません。次のように
コードは次のとおりです。
のActionScriptコード:
_root.onLoad = function(){
_root.clip.skinAutoHide=true;
_root.clip.skinFadeTime=0;
}
_root.onRollOver = function() {
_root.clip.skinAutoHide=false;
}
_root.onRollOut = function() {
_root.clip.skinAutoHide=true;
_root.clip.skinFadeTime=0;
}
(フラッシュは行くべき場所を挿入)ウェブサイトコード:
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
'width', '280',
'height', '280',
'src', '01clip1',
'quality', 'best',
'pluginspage', 'http://www.adobe.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'noscale',
'wmode', 'transparent',
'devicefont', 'false',
'id', '01clip1',
'bgcolor', '#ffffff',
'name', '01clip1',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', '01clip1',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Adobe Flash Player.'
+ ' Get Flash ';
document.write(alternateContent); // insert non-flash content
}
任意の洞察力をいただければ幸いです。
こんにちは!完全に無関係かもしれませんが、実際にあなたのwmodeが透明である必要がありますか?より良いパフォーマンスとおそらく、あなたの問題への解決策のために、不透明またはウィンドウを試してみてください。 – Kodiak
私は問題を引き起こしているかどうかを確認するためにあなたの提案を試みましたが、問題は解決しませんでした。残念なことに、私たちを持っているクライアントは、これが透明であることを望んでいるので、ビデオ(男が歩き、話す、透明な背景)は男がウェブページを歩くように見えます。 –