Hi try like this.., i think this will work fine..
<mx:Script>
<![CDATA[
[Bindable]
public var xmldata:XML;
private function podkategorijeHandler(event:ResultEvent):void {
xmldata=event.result as XML;
/*
public var xmldata:XML = <result>
<subcategories>
<subcategory>
<IDsubcategory>1213</IDsubcategory>
<NameSubcategory>sdasd</NameSubcategory>
</subcategory>
</subcategories>
</result> ;*/
}
]]>
</mx:Script>
<mx:HTTPService id="listaPodKategorija"
useProxy="false"
url="http://localhost/skripte/rss.php"
result="podkategorijeHandler(event)"
showBusyCursor="true" resultFormat="e4x">
<mx:request xmlns="">
<konacno>
{vrijednost}
</konacno>
</mx:request>
</mx:HTTPService>
<mx:HBox>
<mx:ComboBox id="IDSub"
dataProvider="{xmldata.subcategories.subcategory.IDsubcategory}"/>
<mx:ComboBox id="NameSub"
dataProvider="{xmldata.subcategories.subcategory.NameSubcategory}"/>
</mx:HBox>
With Regards Krishna
On Mon, Dec 21, 2009 at 12:30 AM, explorer <[email protected]> wrote:
> Hello I have http service for creating xml it s like this
>
> <mx:HTTPService id="listaPodKategorija"
> useProxy="false"
> url="http://localhost/skripte/rss.php"
> result="podkategorijeHandler(event)"
> showBusyCursor="true" resultFormat="e4x">
> <mx:request xmlns="">
> <konacno>
> {vrijednost}
> </konacno>
> </mx:request>
>
> As you can see I send parameter "konacno" to my php file for
> generating xml, this works fine. Problem is how to handle result. I
> want result xml file to be my dataProvider for comboBox component. And
> what type of eventObject is reply, I tryed with ResultEvent, Event
> both of them working, but neither manage to set as dataProvider.
> My XML result in case od ResultEvent is:
>
> result
> subcategories
> subcategory
> IDsubcategory
> NameSubcategory
> / subcategory
>
> So I want to my ComboBox, for label show NameSubcategory and for data
> IDsubcategory, any ideas
>
> thx
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
>
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.