Certificate Widget - Text formatting problem
- May 20, 2010
- 1 reply
- 711 views
Hello:
(FYI: This question is also posted in the Action Script 3 forum)
I have been modifying the AS3 Certificate Widget that ships with Captivate 4 -- adding backgrounds, re-sizing, etc. However, I don't know how to modify the text format of the variable values when they display. Regardless of what I try, the displayed text seems to be 8pt. Arial. Keeping in mind that I am a complete novice with Action Script, please let me know how you think I might affect the text attributes.
Here is code around line 35:
var y_fmt:TextFormat = new TextFormat();
y_fmt.font = "Arial";
y_fmt.size = 30;
y_fmt.bold = true;
y_fmt.align = "left";
It would seem that modifying the assignment for y_fmt.size would have some effect, but it does not. It does, however, change the font size of data in the widget parameters. So, I think my problem is that I don't know how to apply my custom TextFormat class to text that appears in these variables:
v_Name1.visible = true;
v_Course.visible = true;
v_Grade.visible = true;
v_Date.visible = true;
v_Score.visible = true;
I would be happy to provide all the code if that is appropriate (and helpful.)
Any guidance would be greatly appreciated.
Thanks!
Charlie