nikos101
08-11-2008, 12:25 PM
I'm having a problem with adobe air. I cannot open up a popup browser window from clicking on a button in a adobe air program. I can only open up browser windows within existing browser windows or a new window if none is open.
nikos101
08-11-2008, 06:25 PM
Updating:
I can get this code to work:
var request:URLRequest = new URLRequest("http://www.domain.com"); (http://www.mydomain.com%22%29/;)
navigateToURL(request, "_blank");
but not this:
var request:URLRequest = new URLRequest("javascript:window.open('http://www.domain.com','NameofWindow','width=800,height (http://www.mydomain.com%27,%27nameofwindow%27,%27width=800,height/) =600,top=0,left=0'); void(0);");
navigateToURL(request);
When I try to run the above I get an error
SecurityError: Error #2121: Security sandbox violation: navigateToURL: app:/test_popup.swf cannot access javascript:window.open('http://www.domain.com','NameofWindow','width=800,height =600,top=0,left=0'); void(0);. This may be worked around by calling Security.allowDomain.
If I add Security.allowDomain("www.domain.com");
The error changes to
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
Any help would be helpful guys
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.