Need JSON example for mobile app

Hello, everyone.  I'm looking for a simple example of a mobile application built in Hero that can hit a JSON service and parse the output.  Thank you very much in advance!!

After some research, I'm kind of on my way but I'm still a bit lost.  I've added the following code:
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:HTTPService id="DirectionGetter" resultFormat="
text" url="http://geocoding.cloudmade.com/8ee2a50541944fb9bcedded5165f09d9/geocoding/find_structured/ house:80;+street:Linienstraße;+city:Berlin.js"result="ParseJSONDirections(event)"
showBusyCursor="true">
</s:HTTPService>
</fx:Declarations>
Then, in the <fx:Script> area I've added:
private function ParseJSONDirections(event:ResultEvent):void
var rawData:String = String(event.result);
lblTest.text = rawData;
But nothing happens.  Any advice, folks?

Similar Messages

  • Help me in embedding a map for mobile app

    I have built a basic simple iphone app in flash cs5.Now I want to create a new scene in flash cs5 to show this map fully funtional along with markers in a small resolution for mobile app.(iphone)
    link of the map:
    http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=100795895206195398252.00044490e878 965c7dd91&t=p&om=0&ll=12.340002,77.409668&spn=4.989012,7.404785&source=embed
    Pls help me out in sorting this problem out

    You need to sign up for google maps API here : http://code.google.com/apis/maps/signup.html, get your API key. You need this otherwise it will not work. Thendownload the SDK, from here:http://code.google.com/apis/maps/documentation/flash/ its on the right, on step 2, "SDK"
    the set up flash with the SDK, and then in your components inspector there will be a new folder saying google.
    Drag that component onto the stage. Then add this code: information  will need to be changed to suit your location and API KEY
    package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.geom.Point;
    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    public class googlemap extends Sprite {
    var map:Map = new Map();
    public function googlemap() {
    map.key = "ABQIAAAAF5GHwa7hgxz5etSP-jJVwhSK_rP-_Usta8fEpiVtC50gLzF69hQ6_VK0zgpArekpmdsRCJK2Vnp60A";
    map.setSize(new Point(stage.stageWidth, stage.stageHeight));
    map.addEventListener(MapEvent.MAP_READY, onMapReady);
    this.addChild(map);
    function onMapReady(event:Event):void {
    map.setCenter(new LatLng(45.436319770227,12.33638048172), 13, MapType.SATELLITE_MAP_TYPE);

  • Need the free xfinity mobile app. How do I get it?

    Need the free xfinity mobile app downloaded. How do I get it?

    There is no xfinity app for the MBA.
    It's available for iOS and Android devices in their respective stores.

  • Accordion navigation pane for mobile apps

    Hey,
           Is there a way to create an accordion pane in a android mobile app using Flash Builder? I know you could do it flash web pages. But, for mobile app, I am not sure. I apologize if this is a stupid or redundant question.
    Any direction is greatly appreciated.

    I was thinking about this, for no reason other than I was meant to be doing something else.
    My initial idea was that you could probably achieve something that would give you reasonable flexibility in an accordion like control by creating a custom item renderer for an s:List. EG: Override public function set selected(b:Boolean):void; in the item renderer to add the display clip when selected and remove it when deselected. You could then supply your item elements as an IList with an Array of IVisualElement as its source. I knocked up a quick test and bar resizing the renderer (which I would need to think about a bit) it worked pretty effectively.
    Then, although it is a bit less elegant, it occurred to me you could use a simple s:VGroup swapping the relevant child elements in and out of the display list based on clicks on the label buttons.
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:accordion="accordion.*">
              <fx:Script>
                        <![CDATA[
                                  import mx.core.IVisualElement;
                                  protected function setClipIndex(selectThis:int):void
                                            for(var i:int=0;i<listOfClips.length;i++) {
                                                      var ive:IVisualElement = listOfClips.getItemAt(i) as IVisualElement;
                                                      if(i==selectThis) {
                                                                if(!accordionVG.containsElement(ive)) {
                                                                          // Add at item position plus one to allow for the button
                                                                          accordionVG.addElementAt(ive,i+1);
                                                      } else {
                                                                if(accordionVG.containsElement(ive)) accordionVG.removeElement(ive);
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
                        <s:ArrayCollection id="listOfClips">
                                  <fx:Array>
                                            <s:Scroller width="100%" height="100%" toolTip="A group..." id="defaultGroup" >
                                                      <s:VGroup >
                                                                <s:Button /><s:Label text="Some text in some buttons..." /><s:Button />
                                                                <s:Button /><s:Label text="Some text in some buttons..." /><s:Button />
                                                                <s:Button /><s:Label text="Some text in some buttons..." /><s:Button />
                                                                <s:Button /><s:Label text="Some text in some buttons..." /><s:Button />
                                                      </s:VGroup>
                                            </s:Scroller>
                                            <s:Scroller width="100%" height="100%" toolTip="A different group..." >
                                                      <s:VGroup width="{width}">
                                                                <s:Button />
                                                                <s:Label text="Different text in some other buttons..." />
                                                                <s:Button />
                                                      </s:VGroup>
                                            </s:Scroller>
                                            <s:Scroller width="100%" height="100%" toolTip="Yet another group..." >
                                                      <s:VGroup width="{width}">
                                                                <s:Button />
                                                                <s:Label text="Some other stuff..." />
                                                                <s:Button />
                                                      </s:VGroup>
                                            </s:Scroller>
                                  </fx:Array>
                        </s:ArrayCollection>
              </fx:Declarations>
              <s:VGroup id="accordionVG" top="0" left="0" right="0" bottom="0" creationComplete="setClipIndex(0)">
                        <s:Button width="100%" label="{listOfClips.getItemAt(0).toolTip}" click="setClipIndex(0)" />
                        <s:Button width="100%" label="{listOfClips.getItemAt(1).toolTip}" click="setClipIndex(1)" />
                        <s:Button width="100%" label="{listOfClips.getItemAt(2).toolTip}" click="setClipIndex(2)" />
              </s:VGroup>
    </s:View>
    [/code]

  • I have ordered 2 Playbooks. Do I need to pay for 2 apps for the same one?

    So will I need to pay for one app on one tablet and pay for the same app on the other tablet as the tablets are mine and my sons.  sorry I'm new to this.
    thanks in advance.

    What are you talking about? It's a 3rd party App.  Apple is not going to include ANY 3rd party app on an iPhone. If you don't think you should have to pay for it, talk to the developer. I'm sure they'd love to know that you don't think you should pay them for their work.

  • Need an example for work flow based on multistep activity

    hi,
    i need an example for work flow based on multistep activity for practicing.please do the need.
    thanks

    Hi,
    Workflow document information:
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    /people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    &**********Reward points if helpful**************&

  • SSL Pinning support for mobile apps ?

    Hi there
    i've just read this article and wondered if there is cross platform support for SSL pinning for mobile apps (iOS and Android) developed with AIR ?
    So far my Google research wasn't successful, therefore i ask here.
    Maybe this feature could be supported by a native extension ?
    Thank you for any hint.
    Regards
    valley

    I believe IBM has a mini version of DB2 designed for mobile Apps.
    Good Luck,
    J.Clancey
    Pats World Champs!!!

  • If I have more than one Mac, what do I need to do for the apps to be on both machines?

    If I have more than one Mac, what do I need to do for the apps to be on both machines?
    Also, what can be done about an app that doesn't work as promised?

    If you mean iPod/iPad apps then you need to have a replica of your iTunes Library on both machines. You can backup your iTunes library - Back up your iTunes library by copying to an external hard drive - then restore it on the other computer. Also, see iTunes- How to move your music to a new computer.

  • I need a refund for 2 apps and 2 songs that dont work

    i need a refund for 2 apps (monoply)and(doodle moto) and 2 songs (whAT THE fox say)and(im sexy and i know it)

    1. You have posted to the iTunes Match forum which your question is not related to
    2. iTunes Store support staff do not read these forums. You will need to contact iTunes Store support directly.

  • Need help in developing mobile app using SAP

    Hi
    I have a team of Android, iOS and Windows developers and we are planning to start developing mobile using SAP and SAP Fiori. Need help in getting started with SAP mobile development like i need plugins and development kits that i need to use.
    Thanks
    Ram

    Hi,
    What help needed ?
    For SAP Fiori  Use this link : http://scn.sap.com/docs/DOC-41598
    For SAP Fiori Installation and Configuration Steps: http://scn.sap.com/community/mobile/blog/2014/06/10/fiori-technical-installation-and-configuration-of-one-app-from-a--z
    Which Software you will use to  develop Mobile Apps in SAP Platform ?So that i will suggest what to do ..
    Regards
    Lokesh

  • Joining tables for Mobile apps

    can i access multiple table(like normal join) from one CallResponder's token for my mobile apps(flex 4.6)..if we can ,then how can we do this..i think, there is some solution,but i'm not aware of it.. please give me a short demo or link..how can you join table,by data binding.. thanks..

    +1 for this. it's taking a while to lad on my 2 year old ipad mini, so this would probably help. though in my case, it's going to be an iOS install that needs to ho on a diet.i haven't worked out if it's the player part of the spp that's swelling or additional social aspects of the app that sre growing in size unecessarily.all things said, a music player shouldn't really need to be 75mb+.the android install on my htc m8s is about 13mb, by comparision, less than 2 thirds of the install size.

  • Question About what Azure Services I should be using for mobile app with website.

    Hello,
    I am wondering what Azure service would be best for my new application. I need to have an SQL database that I can connect to and modify from both a website and a mobile app preferably WP8 and Android. I was not really understanding whether I would need a
    mobile service or normal SQL database. Which should I use or am I completely off track?
    Thanks,
    Matthias

    Mobile Services uses SQL Database, nothing special on that SQL Database, its just like any other  "normal" SQL Database.
    Mobile Services provides "back-end services" that simplifies accessing SQL Database, Notification services, authentication, etc...
    Let's assume you don't use Mobile Services, to use SQL Database, you would need your app (both mobile and web) to connect to the database. In practice, you will not want to expose your SQL database directly, so you'd end-up writing some kind of a "facade"
    that your app will access instead of directly connecting to the database.
    Instead of writing that "facade", Mobile services provides that for you (you still have to write code though, but less than what you need to write if you're rolling your own).
    Both your web app and mobile apps can share the same SQL database (pay attention to the mobile service schema).
    To help you decide, ask yourself what other features will your mobile app require? Authentication? Notification? etc... are you prepared to write those on your own or use various libraries instead of one?

  • InDesign png export for mobile app

    Dear All,
    I have put together a number of text boxes and images in InDesign Creative Cloud CS6 and exported them as one png (or jpeg) image for use in a jQuery mobile iPhone app that I'm creating in Dreamweaver.  Will this work?  Rather than inserting text box, image, text box, images, text box, images, etc. into a page of the mobile app, can I just create one png image in InDesign that includes everything, various text boxes, images, wrapped images, html active inserts, etc., and have people scroll through it as a page in the iPhone app?  The InDesign file for this one page is about 1.1 mb right now.  Will this png image be able to zoom and do everthing it needs to do in the iPhone app?  Creative Cloud CS6 - Mac - Lion 10.7.4.  Thanks.
    Small Town Gal

    Dear Jongware,
    My thinking is the same as yours.  If the iPhone app will allow you to zoom a single image, it must allow you to also zoom a compounded image.  I like the design format of InDesign better than the jQuery Mobile design page in Dreamweaver because InDesign allows you to do text wrap around images and just set things up in a more dynamic fashion.  We still want people to be able to zoom in on a single smaller image in order to view it up close, however so if the code in the iPhone app allows the viewer to zoom in on an individual image, it should allow a scroll and zoom in on a larger page that is also a png image -- makes sense to me. The scroll feature works in the multiscreen view and in Safari browser, but it doesn't allow a zoom preview -- I'll have to do that in the iPhone itself. 
    Anyone else out there have any ideas?  Thanks to Jongware.
    Small Town Gal

  • Dopdown list for Mobile Apps (like Android Preferences)

    Hi!
    I'm new in programming mobile apps with Flash Builder 4.6. There are many components like CalloutButton, DateSpinner... which one are very easy to implement in an mobile app.
    But one realy import thing I cannot find. It's something like a Dropbox or SelectionList - like for example the preferences in Android (see picture).
    Has someone a simple working example - would be very great!
    M.
    How to implement something like this?

    I left BB for the same reason a few years back. Have spent time with Apple and Samsung and am now selling my Galaxy S3 and returning to my Bold 9700 - just loathe touch screens and I think the Apps on BB are much improved - often just under a different name than the android ones.
    Missed my BB too much 
    SusanHB on Twitter.......

  • How to create and use Data Vault with HTML/JavaScript (SAPUI5) for Mobile Apps?

    Hello,
    I am creating a demo Enterprise Mobile App, for cross platform and I want to use the Data Vault.
    I am not able to figure out how to implement the Data Vault with HTML/JavaScript i.e. SAPUI5 for cross platform mobile apps I have a tutorial, but it is for Android based apps. Where as I want it for iOS as well. I guess, in this case, implementing the Data Vault using SAPUI5 over HTML and JavaScript would be  better.
    If anyone has any links or sample code to implement Data vault in HTML/JavaScript (SAPUI5) or specific for iOS apps, it would be great.
    Thank you.

    Hi,
    This is the "SAP Mobile Documents" community, so this seems to be the wrong place for asking your question related to Data Vault / SAPUI5.
    Maybe you should post your question here: http://scn.sap.com/community/developer-center/front-end.
    best regards,
    Ingo

Maybe you are looking for

  • I want to dual boot windows 7 and Arch with an HDD caddy.

    I am thinking of two possiblities with this scenario.  I want to first leave my windows 7 install on the hard drive that came with my laptop, and leave that HDD where it is, but in a few days, i'm getting a caddy so i can switch my optical drive for

  • How can I turn on the Location service of my iPad 2 32 GB?

    I just bought an iPad 2 and iPhone 4 yestersday. I want to turn on the location services on my iPad 2 32 GB. When I go to settings > Location Services, I saw it was off then i tried to turn it on, but however, the on and off slide is grey.... that me

  • Document not posted with BAPI_ACC_GL_POSTING_POST

    Hi,    I am trying to post a FBCJ document with BAPI,     BAPI_ACC_GL_POSTING_POST  it is giving message docuemnt posted succesfully  but when i checke again in FBCJ  the document is still in save condition only it is not posted    my actual problem

  • Creative Suite 4 Master Collection Install issue

    Hi, Hopefully someone can shed some light on my problem... I have a brand new copy of CS4 Master Collection which I shelled out a lot of money but I am having problems getting past the first minute or so on the first install DVD!! I keep getting an e

  • New Ipod through warranty, itunes not reading it

    I got a new ipod through my warranty b/c my ipod malfunctioned. Now my itunes wont recognize the new ipod b/c it is not the same one. I did not recieve a new itunes cd or anything. do you know how to get itunes to recognize it?   Windows XP