Here's the remote object info:

import mx.rpc.events.ResultEvent;
import mx.rpc.remoting.mxml.Operation;
import mx.rpc.remoting.mxml.RemoteObject;

private var _ro:RemoteObject;
private var _op:Operation;

public function TestClass() {
        _ro=new RemoteObject;
        _ro.source="TestClassGateway";
        _ro.destination="ColdFusion";
        _ro.showBusyCursor=true;

        _op=Operation(_ro.getOperation("getAll"));
        _op.addEventListener(ResultEvent.RESULT, receiveAll);
}
                
public function getAll():void {
        _ro.getAll();
}
                
public function receiveAll( event:ResultEvent ):void {
        this.dispatchEvent( new Event( TestClass.ALL_RECEIVED ) ); 
}

I put a breakpoint at the dispatchEvent point so I could see what was contained 
in the resultEvent.

Could you post what I'm supposed to change in my services-config.xml file to 
get that working?  This is what I have for <logging> in there currently

<logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Error">
            <properties>
                <prefix>[Flex] </prefix>
                <includeDate>false</includeDate>
                <includeTime>false</includeTime>
                <includeLevel>false</includeLevel>
                <includeCategory>false</includeCategory>
            </properties>
            <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>Service.*</pattern>
                <pattern>Configuration</pattern>
                <pattern>Message.*</pattern>
            </filters>
        </target>
    </logging>

I also wanted to point out that I'm on CFMX7 (not 8).  In the mailing list I 
originally saw this on, Sean Corfield mentioned that this was available in MX7 
so I've been trying to get it to work (I just wanted to put that out there in 
case that's what is messing things up).


> On Wednesday 20 Feb 2008, Gareth Arch wrote:
> > When the data is returned back to AS from CF, it is still just an 
> array of
> > generic objects.  If I create CF objects and return them, they come 
> back as
> 
> Can you post your AS code (RemoteObject call and result handler) ?
> Also, set the log level to 'debug' at the bottom of services-config.
> xml, and 
> let us know the output in the CF log file.
> 
> -- 
> Tom Chiverton
> Helping to evangelistically consolidate fine-grained experiences
> on: http://thefalken.livejournal.com
> 
> ****************************************************
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
> England and Wales under registered number OC307980 whose registered 
> office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, 
> Manchester, M3 3EB.  A list of members is available for inspection at 
> the registered office. Any reference to a partner in relation to 
> Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
> Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above 
> and may be confidential or legally privileged.  If you are not the 
> addressee you must not read it and must not use any information 
> contained in nor copy it nor inform any person other than Halliwells 
> LLP or the addressee of its existence or contents.  If you have 
> received this email in error please delete it and notify Halliwells 
> LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299404
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to