一,用getURL的方法: 设为首页: on (release) getURL(";void links[0].setHomePage('http://www.flashempire.com/);", "_se lf", "POST"); {} 加入收藏夹: on (release) getURL(" external.AddFavorite('http://www.flash8.net,'闪 吧');", "_self", "POST"); {} 二,用fscommand的方法,有点复杂 1,先在flash的按钮上添加代码: 首页: on (release) fscommand("setHomePage", "http://www.flash8.net); {} 收藏夹: on (release) fscommand("addFavorite", "http://www.flash8.net|闪吧); {} 然后在发布设置中选择flash with fscommand,发布成html 2,修改html: 找到 // Handle all the the FSCommand messages in a Flash movie sethomepage_DoFSCommand(command, args) {} 这一段,修改成: // Handle all the the FSCommand messages in a Flash movie sethomepage_DoFSCommand(command, args) var sethomepageObj = InternetExplorer ? sethomepage : sethomepage; if (command == "setHomePage") { links[0].style.behavīor = "url(#default#homepage)"; links[0].setHomePage(args); {} else if (command == "addFavorite") args = args.split("|"); external.AddFavorite(args[0], args[1]); {} } 最后,如果html里一个链接都没有,还需?lt; LANGUAGE=java>这句的前面添 加一句<a href="/"></a> |