1
votes

If I create a new ActionScript project with Flash Builder and want to add some library (for example Tweenlite) where do I have to put the gs folder of Tweenlite relative to my project folder? and what do I need to setup in the project settings in order to be able to use it?

2

2 Answers

2
votes

Doesn't matter, where to put your library folder. Just set the path to this folder at Project -> Properties -> Flex Build Path -> Library Path -> Add SWC Folder...(or Add SWC)

1
votes

I would recommend that you create a new Library project named something like 'TweenLite' and dump the files in there. Then in Flash Builder go to:

Project -> Properties -> Flex Build Path -> Library path tab -> Add Project -> select the tweenlite project.

In this manner the project's source only gets compiled when it needs to be and the resulting swc is used by your application. You still get the benefits of the go-to source hotkey and can set breakpoints in the tweenlite project as well.

Cleaner, reusable, faster, it's how I do things.

*Ah also, multiple projects can reference the tweenlite library project now instead of having to copy & paste the code everywhere.