What's new? | Help | Directory | Sign in
Google
flexlib
Open Source Flex Component Library
  
  
  
  
    
Search
for
Updated Mar 27, 2007 by darron.schall
Labels: Featured
QuickStart  
How to get started using FlexLib in your Flex Projects

Note

This is just a quick outline. We'll make this page more descriptive with screenshots when we get a chance!

Using FlexLib

If you don't have Flex 2.0.1 yet, you must download that first. FlexLib requires Flex 2.0.1.

Download the latest version of the flexlib.swc from the download page.

Create a new Flex project in FlexBuilder.

In your Flex project, create a lib directory.

Extract the flexlib.swc file from the .zip, and place it in the lib directory.

Right click on the project name in the project Navigator, and select Properties.

Select "Flex Build Path" on the left.

Select the "Library Path" tab.

Click the "Add SWC Folder" button.

Type in "lib", press "OK"

Press "OK" to commit your changes.

FlexLib is now available for your project to use. To use the FlexLib components, you need to use the proper XML Namespace: xmlns:flexlib="http://code.google.com/p/flexlib/"

Once the flexlib name space is added in your MXML file, you can use any of the flexlib controls, like: <flexlib:TreeGrid ... />


Comment by yLebid, Sep 06, 2007

Select "Flex Build Path" or "AIR Build Path" on the left.

Comment by davide.barbesino, Sep 12, 2007

But if i use this namespace how can i use the <mx: tag??

Comment by david.spurr, Sep 20, 2007

After adding lib as a SWC folder I tried to use the SuperTabNavigator? (as the base component for a custom component) however I got a could not resolve flexlib:SuperTabNavigator? to a component. The only way I could get rid of this error was to add the SWC itself to the library path. I'm using FlexBuilder? 3 Beta 1 and it all seemed quite happy until I tried to compile (e.g. it gave me code insight etc.).

Is this something that I've done wrong, or something with FB3?

Comment by david.spurr, Sep 20, 2007

After adding lib as a SWC folder I tried to use the SuperTabNavigator? (as the base component for a custom component) however I got a could not resolve flexlib:SuperTabNavigator? to a component. The only way I could get rid of this error was to add the SWC itself to the library path. I'm using FlexBuilder? 3 Beta 1 and it all seemed quite happy until I tried to compile (e.g. it gave me code insight etc.).

Is this something that I've done wrong, or something with FB3?

Comment by david.spurr, Sep 20, 2007

After adding lib as a SWC folder I tried to use the SuperTabNavigator? (as the base component for a custom component) however I got a could not resolve flexlib:SuperTabNavigator? to a component. The only way I could get rid of this error was to add the SWC itself to the library path. I'm using FlexBuilder? 3 Beta 1 and it all seemed quite happy until I tried to compile (e.g. it gave me code insight etc.).

Is this something that I've done wrong, or something with FB3?

Comment by whites.nz, Sep 23, 2007

Davide - it is possible to use multiple xmlns attributes in your application, eg:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" ....

Comment by whites.nz, Sep 23, 2007

Davide - it is possible to use multiple xmlns attributes in your application, eg:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" ....

Comment by whites.nz, Sep 23, 2007

Davide - it is possible to use multiple xmlns attributes in your application, eg:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" ....
Comment by huang.x.hui, Sep 24, 2007

Could not resolve <mx:Application> to a component implementation.

This is my problem, how to correct? I am using flex2.0

Comment by huang.x.hui, Sep 24, 2007

Could not resolve <mx:Application> to a component implementation.

This is my problem, how to correct? I am using flex2.0

Comment by huang.x.hui, Sep 24, 2007

Could not resolve <mx:Application> to a component implementation.

This is my problem, how to correct? I am using flex2.0

Comment by jiorry, Sep 25, 2007

You could use Flexbuilder3, it is OK. I have the same problem in FlexBuilder2?.

Comment by adamacosta16ster, Oct 26, 2007

this couldn't be anymore frustrating. its seems so simple yet so many problems. i have flex 2.014.... i am also getting the 'Could not resolve <mx:Application>' error and the 'Unable to load SWC....multiple points' error. if someone can post the installation process with a screenshot per step id be the happiest person in the world till i start having problems using the components.

Comment by adamacosta16ster, Oct 28, 2007

more descriptive page with screenshots would be fantastic

Comment by audio.architects, Dec 06, 2007

I'm using Flex Builder 3 (Trail) but i am also getting the 'Could not resolve <mx:Application>' error.

Can someone give us some feedback and a description how to use this swc-lib. Thanks

Comment by ssal...@sewardinc.com, Jan 03, 2008

For the following errors, 1. Unable to load SWC flexlib.swc :multiple points. 2. 1017: the defination of base class Locale was not found. 3. Could not resolve <mx:Application> to a component implementation.

Try running the Flex Builder 2.0.1 updater from: http://www.adobe.com/support/flex/downloads_updaters.html#flex2

Comment by screamge, Jan 11, 2008

In FB3 Beta 3 have same problems with "resolve".

Comment by heather.a.rankin, Feb 11, 2008

I'm also getting the 3 errors: 'unable to load SWC flexlib.swc: multiple points', '1017: The definition of base class Locale was not found' and 'Could not resolve <mx:Application> to a component implementation'. I've tried installing the Updater, but it gets stuck at the Folder to Update stage (C:\Program Files\Adobe\Flex Builder 2) it says I don't have an existing copy of Flex 2 installed. This folder does contain the Flex SDK 2 folder, but not the Player or the jre. What should I do?

Comment by dylan.oliver, Feb 15, 2008

I'm having a similar problem. I've included flexlib.swc in the build library path. I've also set the xmlns. Code hinting works and the flexlib components appear under the 'Components' view in FlexBuilder?. When I compile, I get errors like:

ERROR : Type was not found or was not a compile-time constant: SimpleScheduleEntry.

Comment by iuri.matias, Mar 06, 2008

Unknown Flex SDK: "Flex 2.0.1 Hotfix 1" flexmdi_examples

i got this error, what should i do?

Comment by robertemmettroth, Mar 31, 2008

I am working in Flex Builder 3. I do not have the problem of not being able resolve the <mx:Application>, but instead cannot resolve <flexlib:HSlider> to component implementation. Further, when I try to view the example for the HSlider (Slider_Sample?) in the examples folder, none of widget images render (show up as large X's). I retraced the above steps three times to the same end.

Comment by laurence.barry, Apr 24, 2008

I'm trying to build using an ant script in Flex Builder 3. So I have added the following to my mxmlc target:

<compiler.include-libraries dir="lib" append="true">
  <include name="flexlib.swc" />
</compiler.include-libraries>

All I get is: mxmlc? java.lang.OutOfMemoryError?: Java heap space

What am I doing wrong?

Comment by beefdonut, May 08, 2008

why no XSD for this?


Sign in to add a comment