I am developing a complex object (CO) that extends from Canvas. I use it to draw a container in which I can drag more elements like Images (arrows), Canvas (acting like a Panel), ... and so one.
When I try to invoke a webservice operation, passing as parameter the CO commented before, I get an exception like that:
Cannot encode complex structure. Cyclic references detected.
I do not understand what is wrong.
Any ideas will be apreciated.
I recommend model-view or MVC architectures. In such, a complex object
would not extend a DisplayObject. Some other code would create display
objects based on what is found in the model object.