问题
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