2010-04-03 60 views

回答

0

可以在HTML编辑模式

<embed src="//example.com/filename.swf" 
    width="540" height="540" pluginspage="http://www.macromedia 
    .com/go/getflashplayer"></embed> 

使用embed选项卡中保存后,它会自动生成一个小工具包的SWF文件。您使用https协议来确保健壮性,否则可能无法显示内容。

0

你可以创建自己的小工具http://example.com/gadget.xml

<?xml version="1.0" encoding="UTF-8"?> 
<Module> 
    <ModulePrefs title="Demo" 
       author="You!" 
       author_email="[email protected]" 
       width="558" 
       height="558"> 
    <Require feature="flash"/> 
    </ModulePrefs> 
    <Content type="html"> 
    <![CDATA[ 
     <div id="flash-container" 
      style="text-align:center;height:558;border:0;padding:0;margin:0"> 
     Loading... 
     </div> 
     <script type="text/javascript"> 
     function showFlash() { 
      gadgets.flash.embedFlash(
      '//example.com/demo.swf', 'flash-container', 6 
     ); 
     } 

     gadgets.util.registerOnLoadHandler(showFlash); 
     </script> 
    ]]> 
    </Content> 
</Module> 

,那么你可以通过菜单,通过URL嵌入的小工具。