Expand my Community achievements bar.

RemoteObject

Avatar

Level 2
I have a simple mxml file that connects to a cfc using
RemoteObject. The data is returned correctly and populates a
datagrid.



But I don't really want to populate a datagrid, I want to use
the data in the program. So I have moved the RemoteObject to a
class file, but now when I run the app, I get the error: Cannot
access a property or method of a null object reference.



I get a similar sort of error from the original mxml file
setup if I remove the datagrid: Argument error - One of the
parameters is invalid. How does the RemoteObject call know that
I've removed the datagrid??



This makes me think that I need to pass some reference in the
RemoteObject call to the object I want to populate with the result,
but there seems no way to do this, What is the mxml compiler doing
that I can't do in my class file??



Doug
2 Replies

Avatar

Level 2
You'll have to post some sample code for us to see what's
going on.

Avatar

Level 2
Sorry to trouble you, the problem actually is my lack of
understanding of how to program using oop.



Doug