Have you checked your NetConnectionDebugger? Make sure the data is coming over right then worry about the datagrid.
I connected and returned data with the code below, using AMFPHP, PHP5 and Flex2 standalone. var gatewayUrl : String = "http://localhost/amfphp/gateway.php"; var gateway_conn : NetConnection = new NetConnection(); gateway_conn.connect( gatewayUrl ); When I get another change I'll look into ColdFusion again. --- In [email protected], Brian Lesser <[EMAIL PROTECTED]> wrote: > > Hi Renaun, > Have you got this working so that a DataGrid can display a query > returned by CFMS in Flex 2 standalone? I tried doing this: > > _recordResponder = new Responder(handleRecordResult, > handleRecordStatus); > > _nc = new NetConnection(); > _nc.objectEncoding = flash.net.ObjectEncoding.AMF0; > _nc.addEventListener(NetStatusEventType.NET_STATUS, > onNetStatus); > _nc.addEventListener(SecurityErrorEventType.SECURITY_ERROR, > onSecurityError); > > _nc.connect("http://localhost/flashservices/gateway"); > > _nc.call("blesser.mirror.getRecords", _recordResponder); > > Followed later by: > > function handleRecordResult(result){ > grid.dataProvider = result; > } > > But of course I don't see the record set in the grid. It just has one > column named serverInfo. > > I came across this post: > > http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585&threadid=1081224&enterthread=y > > which seems to indicate it likely won't work. Any light you can throw on > getting back a record set would be most welcome. > Yours truly, > -Brian > > > > Renaun Erickson wrote: > > >You can always connect using the NetConnection code as you do in Flash > >and AS 2.0. The Flex mxml tags are just nice wrappers that handle a > >lot stuff for you. > > > >I used the AS NetConnection class to connect a Flex 2 app to the > >current AMF ColdFusion format just fine. The newer RemoteObject > >component in Flex uses the newer AMF3 format. (There are 3 versions > >now, check out the google link below on the AMF3). > > > >Semi-Related Links: > >http://www.communitymx.com/content/article.cfm?cid=EE7CA > >AMFPHP's webpage has some AS classes that can be used also. > >http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=flash.net.ObjectEncoding.AMF3&btnG=Search > > > >Main thing to remember is with Flex2 there is a new AMF format > >(version 3) so beware of compability problems in the future. I assume > >they are not going to get rid of the first two AMF formats but just be > >ware that you do not try and mix gateway and connections up. > > > >Renaun > > > >--- In [email protected], "JIGNESH M. DODIYA" <[EMAIL PROTECTED]> > >wrote: > > > > > >>hi, > >>do anybody know any alternet way to use php and felx-2 standalone > >>together?? > >> > >>i know that remote object can't work with standalone or need CF > >>adepter plug-in and only work with flex- enterpriese edition........ > >> > >>but still any idea to club php with flex-2 standalone edition?? > >> > >>regards, > >>jignesh > >> > >> > >> > > > > > > > > > > > > > > > >-- > >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 > > > > > > > > > > > > > > > > > > > -- > ______________________________________________________________________ > Brian Lesser > Assistant Director, Teaching and Technology Support > Computing and Communications Services > Ryerson University > 350 Victoria St. > Toronto, Ontario Phone: (416) 979-5000 ext. 6835 > M5B 2K3 Fax: (416) 979-5220 > Office: AB48D E-mail: [EMAIL PROTECTED] > (Enter through LB66) Web: http://www.ryerson.ca/~blesser > ______________________________________________________________________ > ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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/

