Good Morning,
It works, you just need to make dataBinding:
HTTPService result --> Repeater dateprovider
Sample code:
<mx:HTTPService id="dataModel".... />
<mx:Tile id="myTile">
<mx:Repeater id="items" dataProvider="{dataModel.result}">
<custom:MyComponent dataObject="{items.currentItem}"/>
</mx:Repeater>
</mx:Tile>
Few notes:
1. Don't forget to call .send() method on your HTTPService object, so
it will start loading data.
2. In the Repeater dataprovider in sample code we have
{dataModel.result}, if you have additional tags in the data that you
load, you just need to type it.... for example
{dataModel.result.items}
Best regards
Stanislav
On 1/27/06, ehogberg <[EMAIL PROTECTED]> wrote:
> Hi all:
>
> New to Flex 1.5, having problems understanding how to do a seemingly
> simple thing: populate a TileList with items created out of a
> HTTPService call. Help/pointers would be appreciated.
>
> I have a HTTPServer object:
>
> <mx:HTTPService id="myService".... />
>
> I have a custom component:
>
> <custom:MyComponent myProperty1="" myProperty2=""/>
>
> I would like to build a TileList of MyComponent instances, iterating
> over the myService.result object to set MyComponent properties.
> However, I can't seem to find a way to do this.
>
> I have tried using a Repeater to handle the myService iteration, but
> can't find the correct syntax (if there is any) for where to nest the
> Repeater within the TileList. It would seem logical to try something
> like:
>
> <mx:TileList ....>
> <mx:dataProvider>
> <mx:Repeater id="r" ....>
> <custom:MyComponent
> myProperty="{r.currentItem.someValue}".... />
> </mx:Repeater>
> </mx:dataProvider>
> </mx:TileList>
>
> but no dice; compiler complains mightily about naming nested objects.
> Am I even in the ballpark on this?
>
> Thoughts from the group?
>
> Thanks in advance,
>
> -E-
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/