did anybody try this one??
 
http://www.jessewarden.com/archives/2005/06/flash_flex_amfp.html

 
On 11/21/05, 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 flexcoders@yahoogroups.com, "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
______________________________________________________________________






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






--
jignesh dodiya

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