[flexcoders] Newbie Question: Library Path for Using a 3rd-party utility
I'm new to Flex, I've been reading the Adobe Training from the Source book, but am stuck on a simple setup question. I want to integrate SQLite, and figured I'd use probinson's sqlite utilities (https://github.com/probertson/air-sqlite) to manage the connections. My question is where do I download this set of utilities so that I can incorporate them into other projects? I'm modifying the test application FlexGrocer to store the inventory locally rather than via the web, but I don't want to copy the files into the FlexGrocer/src directory, but probably somewhere else that can be more easily used by other projects. I suspect there's a path I need to set somewhere for where to look for the libraries, and then I can just use import com.probertson.data.QueuedStatement; import com.probertson.data.SQLRunner; In the Project Properties, there's an option for adding a source path -- should I use that? Or import the swc file that's available from git? If I do this, how can I then apply these settings to my project, is that something I need to do manually each time I set up a new project? Thanks, sorry for such basic questions! Tac
Re: [flexcoders] Newbie Question: Library Path for Using a 3rd-party utility
Hi Tac, First setup your library project. Then go back to your original project and go into Properties Flex Build Path and click Add Project. A dialog will display available library projects for you to choose. Select your new library and click OK. The workspace will rebuild if it doesn't click Project Clean. From now on your original project will be able to access classes in your library project. Note you may need to open the library project when working in your main project. On Sun, Aug 7, 2011 at 6:59 AM, tacman1123 tac...@gmail.com wrote: ** I'm new to Flex, I've been reading the Adobe Training from the Source book, but am stuck on a simple setup question. I want to integrate SQLite, and figured I'd use probinson's sqlite utilities (https://github.com/probertson/air-sqlite) to manage the connections. My question is where do I download this set of utilities so that I can incorporate them into other projects? I'm modifying the test application FlexGrocer to store the inventory locally rather than via the web, but I don't want to copy the files into the FlexGrocer/src directory, but probably somewhere else that can be more easily used by other projects. I suspect there's a path I need to set somewhere for where to look for the libraries, and then I can just use import com.probertson.data.QueuedStatement; import com.probertson.data.SQLRunner; In the Project Properties, there's an option for adding a source path -- should I use that? Or import the swc file that's available from git? If I do this, how can I then apply these settings to my project, is that something I need to do manually each time I set up a new project? Thanks, sorry for such basic questions! Tac
Re: [flexcoders] Newbie Question: Library Path for Using a 3rd-party utility
BTW Welcome to Flex! :) On Sun, Aug 7, 2011 at 6:59 AM, tacman1123 tac...@gmail.com wrote: ** I'm new to Flex, I've been reading the Adobe Training from the Source book, but am stuck on a simple setup question. I want to integrate SQLite, and figured I'd use probinson's sqlite utilities (https://github.com/probertson/air-sqlite) to manage the connections. My question is where do I download this set of utilities so that I can incorporate them into other projects? I'm modifying the test application FlexGrocer to store the inventory locally rather than via the web, but I don't want to copy the files into the FlexGrocer/src directory, but probably somewhere else that can be more easily used by other projects. I suspect there's a path I need to set somewhere for where to look for the libraries, and then I can just use import com.probertson.data.QueuedStatement; import com.probertson.data.SQLRunner; In the Project Properties, there's an option for adding a source path -- should I use that? Or import the swc file that's available from git? If I do this, how can I then apply these settings to my project, is that something I need to do manually each time I set up a new project? Thanks, sorry for such basic questions! Tac