-
[F8] Open url in new window from link in swf
Hi, please help.
I created a link menu in flash and want to have the flash button on press:
1)open up a new html page in the same browser window, and
2) Open an external link in a new browser window.
Can't figure out why what I'm doing doesn't work. When I test the swf file, it works but from the html page where swf is embedded, no reaction whatsoever.
I tried three different ways:
on(press){
getURL("http:www.regency.org", "_blank");
}
on(press){
var myURL:String = "http://www.regency.org";
getURL("javascriptpenNewWindow('" + String(myURL) + "');");
}
And the following javaScript: this in fla:
on(press){
getURL("javaScriptpenWin('http://www.regency.org',750,650)");
}
along with this in html page:
<script language = "JavaScript">
function openWin(sURL, iWidth, iHeight) {
var n=open(sURL,'0','width=' + iWidth + ',height=' + iHeight + ',menubar=no,status=1,scrollbars=yes');
}
</script>
Nothing works in browser. But opens quite well from swf.
Help please!
-
It's probably getting stopped by the popup blocker? Give that a look into...
-
Thanks for the ponter, but unfortunately didn't work. Any other ideas?
-
What is the website you have it on? I can test it and see if I notice anything.
-
It's not live, I'm afraid. I freelance from home and have no way
(that I know of) of testing it until I hand over site to web hosts.
-
-
Well I would say it should work online since flash has different security with local browser settings vs online.
There is no reason your code shouldn't work.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|