# Leading not working

**URL:** <https://forum.kirupa.com/t/leading-not-working/270622>\
**Category:** Uncategorized\
**Created:** [September 11, 2008, 5:25pm UTC](https://forum.kirupa.com/t/leading-not-working/270622 "2008-09-11T17:25:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [September 11, 2008, 5:25pm UTC](https://forum.kirupa.com/t/leading-not-working/270622/1 "2008-09-11T17:25:04Z")

</div>

Can anyone tell me why leading will not work?? I’ve tried setTextFormat and setNewTextFormat and to no avail neither are working. Here is my function applying the new format.

```auto

function loadVideo(itemID)
{
	TweenMax.to(_parent.thumbwin,1,{_x:-800, autoAlpha:0, ease:Expo.easeOut});
	TweenMax.to(_parent.vidwin,1,{_x:2, ease:Expo.easeOut});
	var mc = _parent.vidwin;
	var flv = xml.firstChild.childNodes[itemID].attributes.flv;
	mc.ns.play(flv);
	var title = xml.firstChild.childNodes[itemID].childNodes[0].firstChild.nodeValue;
	var subtitle = xml.firstChild.childNodes[itemID].childNodes[1].firstChild.nodeValue;
	mc.titletxt = title;
	mc.subtxt = subtitle;
	
	//Set the format
	var my_fmt:TextFormat = new TextFormat();
	my_fmt.leading = -20;
	mc.title.autoSize = true;
	mc.vidwin.subtitle.autoSize = true;
	mc.title.setTextFormat(my_fmt);
}

```
