fString Component

The fString component enables you to define a simple string value.


To use the fString component first create a text field on your stage. Ensure that you set its type as dynamic and give it an instance name in the properties panel. (You can also embed your font and set the text properties like color and size at this stage.)

 

Press Ctrl+F7 (Windows) or Cmnd+F7 (Mac) to open the components panel and drag a copy of the fString component out of the fCMSPro folder and onto the textfield on your stage. Press Ctrl+F3 (Windows) or Cmnd+F3 (Mac) to open your properties panel and give the fString component an instance name.

 

With the fString component still selected press Alt+F7 to open the component inspector panel. Edit the values of the component's parameters as follows:

The 'field' parameter refers to the name of the field in your database that you want the textfield to be linked to. This value is always required.

The 'editable' parameter indicates whether the field can be edited or not.

The 'targetTextField' parameter is the instance name of the textfield that the fString component should be linked with. This value is entered for you automatically when you drop the component onto a textfield.

The 'letterCase' parameter allows you to specify the case of the content as "normal", or with all letters as lowercase using the "lower" value, or with all letters as uppercase using the "upper" value.

The 'possibleValues' parameter limits the characters that can be input.

 

To use the fString component as part of a template select both the textfield and the component on the stage and press F8 to open the 'Convert to Symbol' dialogue box. Enter a name for the symbol and click 'OK'.

You can now position the clip somewhere in your movie and attach a fTemplate component as described in the Templates & Doc Types tutorial.