|
|
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 ... />
Sign in to add a comment

Select "Flex Build Path" or "AIR Build Path" on the left.
But if i use this namespace how can i use the <mx: tag??
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?
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?
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?
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/" ....
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/" ....
Davide - it is possible to use multiple xmlns attributes in your application, eg:
Could not resolve <mx:Application> to a component implementation.
This is my problem, how to correct? I am using flex2.0
Could not resolve <mx:Application> to a component implementation.
This is my problem, how to correct? I am using flex2.0
Could not resolve <mx:Application> to a component implementation.
This is my problem, how to correct? I am using flex2.0
You could use Flexbuilder3, it is OK. I have the same problem in FlexBuilder2?.
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.
more descriptive page with screenshots would be fantastic
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
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
In FB3 Beta 3 have same problems with "resolve".
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?
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.
Unknown Flex SDK: "Flex 2.0.1 Hotfix 1" flexmdi_examples
i got this error, what should i do?
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.
I'm trying to build using an ant script in Flex Builder 3. So I have added the following to my mxmlc target:
All I get is: mxmlc? java.lang.OutOfMemoryError?: Java heap space
What am I doing wrong?
why no XSD for this?