108个Flash常见问题解答

豆豆网   技术应用频道   2008年03月26日  【字号: 收藏本文

内容摘要:本文作者收集整理了108个flash常见问题,如MC在场景中的播放问题,Flash中做旋转转速问题,本地机上测试Loading问题,使Flash的影片和声音同步问题...

  收藏夹:

  on (release) {
  fscommand("addFavorite", "http://www.flash8.net|闪吧");
  }

  然后在发布设置中选择flash with fscommand,发布成html

  2,修改html:

  找到

  // Handle all the the FSCommand messages in a Flash movie
  function sethomepage_DoFSCommand(command, args) {
  }
  这一段,修改成:

  // Handle all the the FSCommand messages in a Flash movie
  function sethomepage_DoFSCommand(command, args) {
  var sethomepageObj = InternetExplorer ? sethomepage : document.sethomepage;
  if (command == "setHomePage") {
  document.links[0].style.behavīor = "url(#default#homepage)";
  document.links[0].setHomePage(args);
  } else if (command == "addFavorite") {
  args = args.split("|");
  window.external.AddFavorite(args[0], args[1]);
  }
  }

  最后,如果html里一个链接都没有,还需?lt;script LANGUAGE=javascript>这句的前面添加一句<a href="javascript:"></a>

  107.问:怎样引入透明的位图?

  答: 最好输入png文件。png是fireworks文档。当然你也可以输入GIF89a格式的透明GIF图片。

  108.问:如何在Flash中打开一个定制的浏览器新窗口?

  答: 这个问题,很常见,也讨论过无数次,以前的一些有用的帖子找不到了,现在重新整理如下:

  常用也是很简单的方法是用类似

  Get URL ("javascript:window.open(’new.htm’,’newwin’,’width=320,height=320’);")

  这样的一句,但有很多问题,比如打开了新窗口后,原窗口的内容也被替代了。

  1、在Flash中需要执行打开新窗口动作的地方插入以下语句:

  FS Command ("open_window", "filename.htm;newwin;toolbar=no,location=no,status=no,

  menubar=no,scrollbars=no,resizable=no,width=320,height=200")

  其中Arguments:

  filename.htm 要打开的文件名

  newwin 新窗口的名字

  toolbar=no,location=no,status=no,

  menubar=no,scrollbars=no,resizable=no,width=320,height=200 新窗口的有关属性,包括尺寸

  注意以上三部分要用分号";"分隔

  2、在File〉Publish setting...中设定

  HTML中的Tempalte : Flash with FSCommand

  发布

  3、编辑发布生成的html文件.

来源:闪吧    作者:小飞侠    责编:豆豆技术应用

正在加载评论...