Hey,

Set  makeObjectsBindable="false" inside your HTTPService call...

http://groups.yahoo.com/group/flexcoders/message/37852


Brendan


On 7/5/06, medfordpics <[EMAIL PROTECTED]> wrote:

I have had an application going since BETA 1 of Flex 2.0. I am just
doing a simple query to a PHP script and now with the GA of Flex 2.0 -
I am getting a #1034 Type Coercion Error on my queries. I have tried
debugging but I am getting hopelessly lost in the errors.

Below is an example of the code I am using - this was just working
before I upgraded.
----------------------------------------------------------
...creationComplete="getLatestAlbums.send()" //when the app comes up.

<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;

[Bindable]
public var LatestAlbums:ArrayCollection;

private function resultlatestalbumsHandler(event:ResultEvent) : void
{
LatestAlbums = new
ArrayCollection(getLatestAlbums.lastResult.albumlist.albums)
}
private function faultHandler(event:FaultEvent) : void
{
Alert.show("I can't believe this is now broken");
}
]]>
</mx:Script>

<mx:HTTPService id="getLatestAlbums" url=""
useProxy="false" method="POST"
result="resultlatestalbumsHandler(event)"
fault="faultHandler(event)"
showBusyCursor="true">
</mx:HTTPService>
<myPanel title="Latest Albums" id="LatestAlbumsPanel">
<myTileList dataProvider="{LatestAlbums}"
itemRenderer="latestalbumthumbs" id="latestalbumslist"/>
</myPanel>
----------------------------------------------------------
All I am trying to do, is get the latest pictures from my query and
throw them into the TileList. This worked before...and now is busted.
I don't get any errors when I compile this in Flex Builder, but when
I use the latest Flash Player (GA) it blows up on me with the Type
Coercion errors.

Thanks for your help.

-Jeff


__._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to