My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
FlexBuilderProject  
Instructions for creating a FlexBuilder library project from the SVN repository.
FlexBuilder, Library, Project
Updated Mar 21, 2010 by olarivain@gmail.com

Introduction

The following steps will guide you in checking out the source code for this project and using it in a new FlexBuilder library project.

Details

In order to work with Subversion in FlexBuilder, you must have a Subversion plugin installed. I use Subclipse.

Project Members

If you are a project member with write access to the repository, you must follow Google Code's instructions on checking out the project with your username. See Command-Line Access.

Once you've run the "svn checkout", create a new Flex Library Project

  • Use "flexlib" as the project name
  • Create the project in the folder that you checked out the svn contents to, such as C:\Development\flexlib
  • When you click Finish, FlexBuilder will create a library project with the initial code present from the "svn checkout" step.

After completing the step, jump down to "Configure the project...".

Read-Only Access

Follow the steps below to create a project with read-only access.

Add an SVN Repository location for this project

  • In the Window menu, select Show View -> Other
  • Expand SVN and select SVN Repository, then click OK
  • Right click in the SVN Repository view and select New -> Repository location...
  • Enter the SVN Repository for this project: http://flexlib.googlecode.com/svn/trunk/
  • Click Finish

Check out the code from the project into the Flex Library Project

  • Right click on the repository location you added in the previous step, and select Checkout...
  • Select "Check out as a project configured using the New Project Wizard" and click Finish
  • Expand the Flex folder, select Flex Library Project, and click Next
  • Name the project after this library (in this case, flexlin), and select the directory where the source code will be placed (or, you can just use the default directory there, under the current workspace). Click Finish.

Configure the project to include the proper classes in the .swc output file

After the code is checked out from the previous step, you need to modify the project so that it knows what classes to include in the output .swc file.

  • Right click on the project that you just created in FlexBuilder and select Properties
  • Select Flex Library Build Path
  • In the "Main Source Folder" field, type in "src"
  • Under the Classes tab, select the "src" folder to include everything. Alternatively, you can pick and choose what classes you want.
  • Click OK

Configure the project to build against Flex3 or Flex4

After the code is checked out from the previous step, you need to modify the project so that it knows whether it should build against Flex3 or Flex4.

  • Right click on the project that you just created in FlexBuilder and select Properties
  • Select Flex Library Compiler
  • Update Addition Flex Compiler arguments box with one of:
    • Flex3 (default): -define+=FLEX_TARGET_VERSION::flex4,false -define+=FLEX_TARGET_VERSION::flex3,true
    • Flex4: -define+=FLEX_TARGET_VERSION::flex4,true -define+=FLEX_TARGET_VERSION::flex3,false
  • Click OK.

When the dialog closes, the project will be built and you'll have the projects .swc file placed in the default "bin" output directory.

Updating the project code

To get the latest code from SVN, right click on the project, and select Team -> Update

Working with the project

See HowToBuild for information about building the examples, running the unit tests, or creating asdoc documentation.

Comment by Am.St...@gmail.com, Sep 19, 2007

Is Subclipse installed like other plugins...simply download and copy folders or files to FB's plugin dir? Version specific to FB2?

Comment by dsmys...@gmail.com, Jun 23, 2008

when i try to use the built SWC file instead of the one I downloaded in my project, nothing works. all of my flexlib components get "could not resolve" errors. any suggestions?

Comment by JamesTan...@gmail.com, Jul 1, 2008

Properties/ Flex Library Compiler/ add namespace URL : http://code.google.com/p/flexlib/ and mainifest file : manifest.xml Then it works

Comment by bazza...@hotmail.com, Jan 14, 2010

The svn server is inaccessible when attempting to use TortoiseSVN (or Subclipse), however I found this problem in a number of code.google.com repositories.

I get this error... Command: Checkout from http://flexlib.googlecode.com/svn/trunk, revision HEAD, Fully recursive, Externals included Error: OPTIONS of 'http://flexlib.googlecode.com/svn/trunk': could not connect to Error: server (http://flexlib.googlecode.com) Finished!:

It is still possible to view the repository contents using a web browser like Google Chrome.

Comment by jackzhan...@gmail.com, May 23, 2011

does this code not support build a new library project(create swc file) by FlashBuilder? 4.5.


Sign in to add a comment
Powered by Google Project Hosting