如何在actionscript1.0上从flash调用javascript函数

时间:2011-11-15 01:17:17

标签: actionscript

on (press)
{
here I want to call a javascript function
}
on (rollOver)
{
gotoAndPlay("guizhou");
}
on (rollOver)
{
startDrag ("1guizhou", true);
}
on (rollOut)
{
gotoAndPlay("kongk");
}

如何在新闻事件中调用javascript函数?在as3.0中有mouseevent但是在as1.0中,我不知道怎么做?你能救我吗?

1 个答案:

答案 0 :(得分:1)

您可以使用getURL:

getURL("javascript:functionName()");

有关此功能的更多信息,请访问:

http://help.adobe.com/en_US/as2/reference/flashlite/WS5b3ccc516d4fbf351e63e3d118ccf9c47f-7fc9.html