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";>
        <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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 



Reply via email to