Basic tutorial

This tutorial will take you through the steps necessary to use the randomLine component.

 

 

1) Having installed the component using the latest version of the Adobe Extension Manager open Flash and start a new file.

 

2) Press Ctrl+F7 (Windows) or Cmnd+F7 (Mac) to open the components panel, locate the randomLines component and drag a copy onto your stage. Position and size the component as per your requirements.

 

3) Press Ctrl+S (Windows) or Cmnd+S (Mac) to save your file and Ctrl+Enter (Windows) or Cmnd+Enter (Mac) to test the file.

 

 

Adding color

By default the randomLines component uses random colors, but it is possible to specify the colors to be selected from, to do so follow these steps:

 

 

4) With the randomLines component selected on the stage press Alt+F7 to open the component Inspector panel.

 

5) Locate the 'Line colors' parameter and click the 'Add a Color' button.

 

6) The default color added is 0xCCCCCC, to change this color click on the colored square and select your desired color.

 

Repeat steps 5 and 6 to add additional colors.

 

To remove a color click on the button to the right of the color.

 

 

Advanced masking

The randomLines component allows you to specify a clip in your library to use as a mask for the component. To do this, follow these steps:

 

 

7) Press Ctrl+F8 (Windows) or Cmnd+F8 (Mac) to open the new symbol dialog box.

 

8) Enter a name for your symbol ("randomLines mask clip" for example).

 

9) Ensure that the type is set to 'MovieClip'.

 

10) If the advanced section isn't open click 'Advanced' to open it.

 

11) Tick the 'Export for Actionscript' checkbox. (The 'Export in first frame' checkbox will tick itself.)

 

12) Enter an 'Identifier' for your clip (for the purposes of this tutorial use 'linesMask' (without the quotes)).

 

13) Click 'OK'.

 

14) On the timeline of your new movie clip draw a shape fill. The shape you draw will be the visible area of the component, the area not covered by a shape fill will be hidden.

 

15) On your main timeline with the randomLines component selected open the Component Inspector panel and locate the 'Mask Identifier' parameter, enter the identifier you gave your mask clip in step 12 (linesMask).

 

16) Save and test your file.