0 Replies Latest reply on Jun 30, 2009 2:31 AM by ianben


    ianben Level 1

      I have an app that has a viewstack and on on of the views I want to put in an httpService instruction that populates a DataGrid. Everytime I do this I get a parsing error on the http line so it appears that I can't put this facility within any sort of container Vboxes, Hboxes, Canvas etc they all throw up the same problem. I must be able to have this sort of feature within a viewstack surely but I can't see how to get around it. The code for this part of the viewstack is below.

      <mx:Canvas label="Info" width="100%" height="100%" id="DiInfo">
                  <mx:Text text="u.Publish" fontSize="10" right="0" top="0" color="#A7ADBE"/>
                  <mx:Text x="10" y="10" text="Information Page"/>
                  <mx:HTTPService id="contactService" url="data/contacts.xml"/>
        <mx:Button label="Get Data" click="contactService.send()" x="308" y="60"/>
        <mx:DataGrid dataProvider="{contactService.lastResult.contacts.row}" x="308" y="90"/>
                  <mx:HBox x="460" y="364" width="222" height="32">
                      <mx:Text text="Go to Facebook Group"/>
                      <mx:Button label="Facebook" fillAlphas="[1.0, 1.0, 0.76, 0.76]" fillColors="[#FFFFFF, #2C4C95, #FFFFFF, #90A6D6]"/>

      Sorry if this is a dopey question but each time I ask one of these one of the clever bods out there helps and I gradually get a little better at doing this sort of thing.