actionscript 3 - How to navigateToURL from Flex application contained within an Adobe AIR wrapper? -


i have flex application loaded air htmlloader. flex application displays link when clicked, calls navigatetourl(...) , displays new browser window. functionality works flex application, nothing when wrapped in air.

are loading flex app disk? might in local-with-file sandbox.

have @ this: http://help.adobe.com/en_us/as3/dev/ws5b3ccc516d4fbf351e63e3d118666ade46-7cba.html

here's excerpt documentation link above.

home / actionscript 3.0 developer’s guide / networking , communication / http communications opening url in application  flash player 9 , later, adobe air 1.0 , later  can use navigatetourl() function open url in web browser or other application. content running in air, navigatetourl() function opens page in default system web browser.  urlrequest object pass request parameter of function, url property used.  first parameter of navigatetourl() function, navigate parameter, urlrequest object (see using urlrequest class). second optional window parameter, in can specify window name. example, following code opens www.adobe.com web page:  var url:string = "http://www.adobe.com";  var urlreq:urlrequest = new urlrequest(url);  navigatetourl(urlreq); note: when using navigatetourl() function, runtime treats urlrequest object uses post method (one has method property set urlrequestmethod.post) using method. when using navigatetourl() function, uri schemes permitted based on security sandbox of code calling navigatetourl() function.  apis allow launch content in web browser. security reasons, uri schemes prohibited when using these apis in air. list of prohibited schemes depends on security sandbox of code using api. (for details on security sandboxes, see air security.)  application sandbox (air only) uri scheme can used in url launched content running in air application sandbox. application must registered handle uri scheme or request nothing. following schemes supported on many computers , devices:  http: https: file: mailto: — air directs these requests registered system mail application sms: — air directs sms: requests default text message app. url format must conform system conventions under app running. example, on android, uri scheme must lowercase. navigatetourl( new urlrequest( "sms:+15555550101") ); tel: — air directs tel: requests default telephone dialing app. url format must conform system conventions under app running. example, on android, uri scheme must lowercase. navigatetourl( new urlrequest( "tel:5555555555") ); market: — air directs market: requests market app typically supported on android devices. navigatetourl( new urlrequest( "market://search?q=adobe flash") );  navigatetourl( new urlrequest( "market://search?q=pname:com.adobe.flashplayer") ); allowed operating system, applications can define , register custom uri schemes. can create url using scheme launch application air.  remote sandboxes following schemes allowed. use these schemes use them in web browser.  http: https: mailto: — air directs these requests registered system mail application other uri schemes prohibited.  local-with-file sandbox following schemes allowed. use these schemes use them in web browser.  file: mailto: — air directs these requests registered system mail application other uri schemes prohibited.  local-with-networking sandbox following schemes allowed. use these schemes use them in web browser.  http: https: mailto: — air directs these requests registered system mail application other uri schemes prohibited.  local-trusted sandbox following schemes allowed. use these schemes use them in web browser.  file: http: https: mailto: — air directs these requests registered system mail application other uri schemes prohibited. 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -