|
|
GettingStarted
Learn how to get set up and get started with Degrafa.
Using Degrafa
Degrafa works with Flex2.0.1 and Flex3 (beta). If you don't have either of those, you can download Flex 2.0.1, or download the beta of Flex 3 from Adobe Labs.
- Download the latest version of the degrafa.swc from the Download page.
- Create a new Flex project in Flex Builder.
- In your Flex project, create a lib directory.
- Extract the degrafa.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.
- Degrafa is now available to use in your project. To use Degrafa, you need to use the proper XML Namespace: xmlns:degrafa=“http://www.degrafa.com/2007“
- Once the degrafa name space is added in your MXML file, you can use any of the Degrafa classes: <degrafa:Circle ... />
Sign in to add a comment

This instruction suits Flex3 (beta3)
In Flex2.0.1 (WinXP) the messages looks as follows: "X An internal build error has occurred. Please check the Error Log." "X unable to load SWC Degrafa.swc"
Is there another way of connecting this library to Flex2.0.1 ?
@vsilyin I just uploaded a version of the swc compiled with Flex 2. Apologies for any confusion.
Thanks! Library Degrafa-.1.2.zip works well in Flex 2.0.1! Now I'll be able to take part in the competition and try to win Flex3! :-)
I followed this process but it did not work with me I have this error:
1017: The definition of base class Locale was not found.
Could not resolve <mx:Application> to a component implementation.
unable to load SWC Degrafa.swc: multiple points
can you help me please?
On the Mac when I unzip the zip file it actually recursively unzips the SWC. It results in a folder without a SWC file in it. If you open up the terminal and do:
unzip Degrafa-2.2.zip
It only unzips the initial zip which contains just the SWC. Just an idea maybe distribute the SWC without putting it in a zip since it's already a zip file. You're not really compressing it any more than it already is.
I too had this problem. The second time I unzipped the file I did get the SWC.
On mac, you can extract the SWC file using Stuffit Expander (free) !
@charlie.hubbard I had a similar problem with another swc library. You can use Stuffit as dcz.switcher stated, but I also blogged about how to change the mac archive utility to prevent it here: http://mattguest.com/archive-utility-annoyance
@mattguest Thanks for the tip; I'd never even seen the prefs for Archive Utility :)