2011-01-09 7 views
0

HI皆さん、のFlashムービーは

私はいくつかの理由

ilogicconcepts.com.sg

で私のクライアントのWebページ上の簡単なFlashムービーを表示しようとしている、映画は単に拒否を読み込みませんロードするには、私はhttp://ilogicconcepts.com.sg/media/home.swfに直接アクセスすることができますので、許可の問題ではありません。

私はfirebugをチェックしました。そのページはムービーを読み込もうとしません。これに関するどんなアイデアも非常に高く評価されます。

ありがとうございます。

+0

クロスドメインの問題:http://www.actionscript.org/forums/showthread.php3?t=137138 –

+0

仲間シンガポール? – mauris

+0

http://code.google.com/p/swfobject/を使用して、SWFクロスブラウザを安全に埋め込むことを強くおすすめします。私はこれが問題であるかどうかはわかりませんが、SWFはIEでロードされます。 – Roy

答えて

0

私はSWFObjectを使うべきだと思います。 http://code.google.com/p/swfobject/downloads/detail?name=swfobject_2_2.zip&can=2&q= jsファイルが埋め込まれている必要があります.expressinstall.swfは、古いバージョンのFlash Playerを自動的に更新します。プレーヤーの最小バージョンを設定したり、カスタム変数をFlashに追加したり、Flashムービーのパラメータや属性を設定したりすることができます。詳細については、swfobjectドキュメントを参照してください。

コードを変更しました。したがって、swfobject.jsファイルをjsフォルダに、expressinstall.swfファイルをメディアフォルダに置き、コードを下のコードに置き換えると正常に動作します。私はFF3とChromeでテストしました。

コード:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="/css/style.css" /> <link rel="stylesheet" type="text/css" href="/js/lightbox/css/lightbox.css" /> 
    <title>Welcome to Ilogic Concepts Singapore.</title> 
    <script type="text/javascript" src="js/swfobject.js"></script> 
    <script type="text/javascript"> 
     var _gaq = _gaq || []; 
     _gaq.push(['_setAccount', 'UA-3702519-11']); 
     _gaq.push(['_trackPageview']); 
     (function() { 
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
     })(); 

     function initFlash() 
     { 
      var flashvars = {}; 
      var params = { 
       allowScriptAccess: "sameDomain" 
      }; 
      var attributes = {}; 

      swfobject.embedSWF("media/home.swf", "flashcontent-home", "450", "338", "9.0.0", "media/expressInstall.swf", flashvars, params, attributes); 
      swfobject.createCSS("#flashcontent-home", "width:450px; height:338px; float:left; margin-right:10px;"); 
     } 
    </script> 
</head> 
<body> 
    <div id="container"> 
     <div id="header"></div> 
     <div id="main"> 
      <script type="text/javascript" src="/js/jquery.js"></script><script type="text/javascript" src="/js/jclock.js"></script> 

      <div id="nav-wrapper"> 

       <div class="jclock"></div> 
       <ul id="nav"> 
        <li><a href="/">HOME</a></li> 
        <li><a href="/about">ABOUT US</a></li> 
        <li><a href="/services">SERVICES</a></li> 
        <li><a href="/portfolio">PORTFOLIO</a></li> 
        <li><a href="/contact">CONTACT US</a></li> 
       </ul> 
      </div> 

      <script type="text/javascript"> 
       $(function($) { 
        $('<img src="/img/button-bg-alt.png" alt="" />'); 

        $('.jclock').jclock({ 
         format: '%A, %d.%m.%Y - %H:%M:%S' 
        }); 
       }); 
      </script> 

      <div id="content"> 
       <div class="heading-page">HOME</div> 
       <div id="homeWelcome"> 
        <div id="flashcontent-home"></div> 
        <div id="passage"> 
         Welcome,<br/><br/> 

         We believe that good design <br/> 
         is timeless in both <br/> 
         function and nature. <br/><br/> 
         Through years of experience, <br/> 
         we create rooms that reflect <br/> 
         our clients' individual <br/> 
         needs and personal style. 
        </div> 
       </div> 
      </div> 
     </div> 
     <div id="footer"></div> 
    </div> 

    <script type="text/javascript"> 
     var _gaq = _gaq || []; 
     _gaq.push(['_setAccount', 'UA-3702519-11']); 
     _gaq.push(['_trackPageview']); 

     (function() { 
     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
     })(); 

     initFlash(); 
    </script> 
</body> 
</html> 

幸運、 ロブ

+0

ありがとうございました!魅力的な作品! –

関連する問題