[原创]Flash直接使用外部Javascript

      Flash及RIA 2007-4-28 15:39

import flash.external.ExternalInterface;

System.useCodepage = false;

btn.onRelease = function() {

         var lv:LoadVars = new LoadVars();

         lv.onData = function(src:String) {

                   ExternalInterface.call(src);

                   ExternalInterface.call("jsFunction()");

                   ExternalInterface.call("alert('ezzz.5dblog.com')");

         };

         lv.load("http://www.yourdomain.com/javascript.js");

};
_root.stop();

标签集:TAGS:Flash Javascript ActionScript
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}