Getting Started with RatingBar Flex component
Category Archives: Flex Components
Adding SWC library in your Flex project
Aside
This tutorial let you understand how to add an external library into your Flex project.
1. Open a Flex project
Open an existing project or create a new project in Flex builder.
2. Open the properties of the project.
Select the current project in the Flex Navigator panel. Open the properties of the project by selecting menu>project>properties.
Navigate to the Flex Build Path page.
3. Add the library swc.
Click the “Add SWC..†button. Select the library file with *.swc.
Click OK button after select the file.
Getting Started with Reflector Flex Component
Aside
- Follow this guide to add the swc library into your project. Add swc in your project.
- Adding id for the targets.
Select the visual component, which you want to add reflection effect. In the id field of property panel, fill in a unique name. e.g. image_1.
3. Adding the tag for Reflector component.
Open up the code view by selecting the source button.
Inside the <Application> tag. Before any visual component tag. Type “<Reflect….â€, you will get the quick look on the correct tag name.
<dceffs:Reflector />
This also add a new namespace xmlns:dceffs=”library://ns.digicrafts.com.hk/flex/dceffs” in your application tab.
4. Specify the targets.
Inside the tag, add the targets parameter and specify a array which hold the targets.
<dceffs:Reflector targets=â€{[image_1,image_2]}â€/>
5.    5. Now you test your application, you will see a reflection effect added.