Hi all,
I am banging my head against the wall on this one.
We have an app that runs on two different servers.
One calls a CFC and uses <mx:RemoteObject>
The other one calls a java servlet using <mx:HTTPService> but they both
retrieve the same data.
With the CFC we are using remoting and we can access the data by going
public function geoResultHandler(event:ResultEvent):void
{
countries = event.result.countries as ArrayCollection;
// difference
blah blah blah... more code
}
and to call it
<mx:ComboBox id="theCountry" x="10" y="58" prompt="Please Select A
Country" dataProvider="{countries}" labelField="country_long"
change="setProvince()" width="90%">
This works great.....
But with <mx:HTTPService>.. using that way returns null.. so we have to
use the following
public function geoResultHandler(event:ResultEvent):void
{
countries = new ArrayCollection(event.result.countries
as Array); // difference
blah blah blah... more code
}
<mx:ComboBox id="theCountry" x="10" y="58" prompt="Please Select A
Country" dataProvider="{countries}" labelField="country_long"
change="setProvince()" width="90%">
Can anyone explain the difference of using a variable as an
ArrayCollection instead of declaring new ArrayCollection()
Thanks
Jeremy Tooley
--
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/