ios - Flex AS3 Iphone - How to Open Native Maps Application? -


i have bunch of buttons opens default map application , puts in users system clipboard. works fine on android tablets, iphone nothing when button clicked. here code:

  case "mapyummyyummy":         system.setclipboard( "1665 stelton rd  piscataway nj 08901" )         _callurl = "geo: 40.4978922, -74.4488224";         var targeturl:urlrequest = new urlrequest(_callurl);         navigatetourl(targeturl);         break;   

does know equivalent work on iphone devices? thanks!

have tried setdata method? (i have no experience one, looks viable alternative).

http://help.adobe.com/en_us/flashplatform/reference/actionscript/3/flash/desktop/clipboard.html#setdata()

ios launch maps via url reference: http://developer.apple.com/library/ios/#featuredarticles/iphoneurlscheme_reference/articles/maplinks.html

querying location:

http://maps.apple.com/?q=cupertino

setting start , end directions:

http://maps.apple.com/?daddr=san+francisco,+ca&saddr=cupertino

hope works ya (looked not tested).


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -