I have installed Java and WTP on Flexbuilder 3 and have setup a MySql database, and created a database user and created tables using the DataSource Explorer and Sql Editors. Way cool.
Then I used Data->Create Application from Database to create a CRUD Application for a Table and that too worked great. I got an editable datagrid bound to the table with a viewstack and input form that allows adding new rows and all is well, with that. Then I was thinking, danger Will Robinson, that the REST of the story should be the same for other Flex screens accessing that same database table so I can have any number of screens with access to the REST interface for the one I generated with Create Application from Database, just include the same addressScript.as for my 'address' table and change the grid references and that should work right? When I take another application let's call it PersonComponent.mxml and add <mx:Script source="addressScript.as" /> The same that is in my address.mxml that works just fine generated from CAD I get a lot of problems 1120: Access of undefined property addressCol. Person/flex_src addressScript.as line 178 so the references to things like dataGrid and column id in the addressScript fail. How do I get around this problem short of moving all the script into the mxml Ollie

