I have a setup where livecycle returns an array filled with instances of class MyClass with, among others, property aName. MyClass implements MyInterface which has an accessor name, in the implementation MyClass name handles aName. A component listens to an ArrayCollection filled with this array and its labelField property is set to name.
What happens next is a guess but seems plausible to me. Due to the fact MyClass is not referenced in the application, I don't need it for the dataprovider, it isn't included in the swf file. The result is an array not filled with MyClass instances but with Object instances with the aName property because livecycle seems to use a failover strategy where dynamic objects will be created if the class can't been found. This results in an error for the component because the labelField doesn't exist here.
My question is: is there a way to force Flex to include files? I know I can handle this with changing the labelField but I want to stick to my design.
I don't know it this will help you but in a flex lib nature project you can include the classes you need from the file .flexLibProperties. You can try to include into your .flexProperties file the next argument:
</includeClasses>, but I didn't had the time to test so i can tell you for sure that it will work.
your answer didn't work but it helped me on the way. I added includes/symbol to my local flex configuration file (appname-config.xml) with the path of the class to include.