getURL not working on HTML export (Actionscript2.0)

▼魔方 西西 提交于 2019-12-24 15:53:26

问题


I was trying to add a facebook connection in developing flash website. Am using actionscript 2.0. I used the the following code more the button

on (release)
{
    getURL("http://www.facebook.com", "_blank");
}

button works and takes me to the facebook link in SWF export. But am not yet able to access the link from the exported HTML file.

(when i click the button in HTML export, it is connecting this link, file:///D:/WEBDESIGN/www.facebook.com)

It would be a great if someone can help me out to find the soluntion.

Thank you, Yousuf.


回答1:


GetURL actions may not work when testing locally, due to security sandbox restrictions. You have to test your HTML file from a server such as

http://localhost

or upload with FTP to a webserver somewhere.



来源:https://stackoverflow.com/questions/19879798/geturl-not-working-on-html-export-actionscript2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!