Hi, Your top-level Application stored in Application.application is not dynamic. You can't add or access custom objects in there. You could have done this in Flex 1.5, though. Just change the location of your custom modGen property to an instance property of a custom class in your application. Using Cairngorm, you could use the ModelLocator for this. Note, that you cannot bind to class properies, only to instance properies.
Best, Alex Alex Uhlmann Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of oiland_barry Sent: 26 March 2006 10:05 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 1.5 to 2.0 migration problem I have performed a 1.5 to 2.0 migration and i have almost got things working after alot of headaches (im really wondering if its worth my while to migrate!). I have got rid of all my errors, but when i run the application i get the following error: ReferenceError: Error #1069: Property application not found on complantAdd and there is no default value at _complantAddWatcherSetupUtil/setup() at complantAdd/complantAdd::_complantAdd_bindingsSetup() at complantAdd/initialize() I have a main mxml application file in which i use an instance of a local mxml component: <local:complantAdd xmlns:local="*" id="plantAdd" /> In this component, i have a combobox which i bind the contents of a data model to (the model 'modGen' is defined in the main mxml application): <mx:ComboBox id="cmbGenus" labelField="genericName" dataProvider="{mx.core.Application.application.modGen}"/> I guess the error is because of the binding above, but im totally lost and it starting to make me think that i should just stick with Flex 1.5! Maybe this is not enough information for someone to comment on, if more is needed (like a code listing) then please let me know. Please help anybody, quickly would be good... cos i cant spend much more time on getting nothing done, im getting paid by the hour and not able to produce anything! -- 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 -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/