2011-08-01 180 views
-1

我有一个Flash网站的介绍,我想在Flash完成后自动打开一个外部链接, 我该怎么做? 这是index.html的:自动打开一个外部链接

script> 
     swfobject.embedSWF('main.swf', 'intro', '100%', '100%', '9','js/expressinstall.swf', {XMLSource:'intro.xml', domain: '*'}, {allowfullscreen: "true", allowscriptaccess: 'always', bgcolor: '#ffffff', menu: 'false'}, {id: 'intro'}); 

    </script> 

</head> 

<body style="margin:0px;overflow:hidden"> 

<div id="intro"> 
     <p>In order to view this page you need Flash Player 9+ support!</p> 
     <p> 
      <a href="http://www.adobe.com/go/getflashplayer"> 
       <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> 
      </a> 
     </p> 
    </div> 
+0

你应该使用ActionScript来做到这一点,而不是使用HTML包装器。而不是在ActionScript中对网站进行硬编码,您应该使用ExternalInterface调用JavaScript函数来打开链接,以便更新链接不需要重新发布您的swf。 – TheDarkIn1978

回答