Topic: Letter spacing for caption? Target path for caption?

I have a site using multiple galleries and now I need to add some letter spacing to the caption text.

I've managed to hide/show caption with this target path:
_root.mcLoader.sm.mClip_mc.Caption
.. but I can't target the dynamic text field named "txtText" which lies inside MovieClip "Caption" in simpleviewer.fla.


The code I'm trying to use is(and succesfully applied to gallery menu):

var format:TextFormat = new TextFormat();
format.letterSpacing = 1;
txtText.setTextFormat(format);
_root.mcLoader.sm.mClip_mc.Caption.txtText.setTextFormat(format);

..the code above is "poured in" multiple_galleries.fla.

Any ideas?

Re: Letter spacing for caption? Target path for caption?

To add letter spacing, you can directly format the caption text field in the FLA library.

Felix Turner
SimpleViewer Support Team.

Re: Letter spacing for caption? Target path for caption?

You mean directly adding a value in the Letter spacing field in dynamic text field txtText, which is inside Caption movieclip? Because I tried that, and it doesn't work.

Re: Letter spacing for caption? Target path for caption?

Yay!

I added:

var fmt:TextFormat = mCaption_mc.txtText.getTextFormat();
mCaption_mc.txtText.setTextFormat(fmt);
mCaption_mc.txtText.setNewTextFormat(fmt);

into public function showCaption(index:Number) in StageManager.as, added a character to the textfield, and then my letter spacing/kerning changes to textfield worked!