Maybe create httpservice instance in actionscript, did you debug your code, i think your servise call is before your actionscript set id
Robert Was


greenfishinwater wrote:

  

This has been driving me mad for the last few hours.

I have built a custom component based on mx:Canvas, which contains a
form and a HTTPService to fetch data to be displayed in the form.

The application is:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:my="*"
layout="absolute">
<my:StoreDetails storeId="1850">
</my:StoreDetails>
</mx:Application>

The component StoreDetails is:

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="500"
height="510">

<mx:Script source="StoreDetails_as.as"/>

<mx:HTTPService id="storeGet" result="storeGetResult(event)"
useProxy="false" method="GET"
contentType="application/xml" showBusyCursor="true"
resultFormat="e4x"
url=""http://localhost:3000/stores/get">http://localhost:3000/stores/get">
<mx:request xmlns="">
<id>{storeIdToUse}</id>
</mx:request>
</mx:HTTPService>

..

In my script file StoreDetails_as.as I have contains:

[Bindable] private var storeIdToUse:String;

public function set storeId(s:String):void {
storeIdToUse = s;
storeGet.send();
}

The problem is that the binding of the storeID via storeIDToUse to the
HTTP request is not working.

When I hard code the store id in the HTTP request the code works.

What else do I have to do to get this data binding to work.

Andrew

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to