我想转换这条actionscript 2指令:
button_btn.onRelease = function():Void
{
getURL('javascript:shrinkSkinOverlayDiv()');
}在我使用adobe flash-cc的那一刻,我已经不再支持actionscript2的one.At了。因为我真的是flash新手,所以我需要一些帮助(从我的老板那里接受了一项我甚至无法完成的工作:P)。
发布于 2015-10-24 10:59:31
对于您的按钮,使用addEventListener()侦听MouseEvent.CLICK事件。
要调用JavaScript函数,请使用ExternalInterface.call()。
import flash.events.MouseEvent;
import flash.events.Event;
import flash.external.ExternalInterface;
button_btn.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:Event):void {
ExternalInterface.call("shrinkSkinOverlayDiv");
}https://stackoverflow.com/questions/33312678
复制相似问题