Skip to main content
NancyParker
Participating Frequently
January 30, 2011
Answered

Losing my Hanging Indent on Publish

  • January 30, 2011
  • 1 reply
  • 871 views

I have several dynamic variables (classic) with the value for Spacing set to (-27) in the property window.  All looks good on the test movie and occasionally also after publishing.  But for reasons I can not figure out sometimes they ALL dissappear.

I go back in and check my properties attributes and they have been set back to (0) for Spacing. Margins and the other tags seem uneffected.

Anyone else notice this or have a clue to avoid?

Thanks for thinking about this with me!

This topic has been closed for replies.
Correct answer Kenneth Kawamoto

Have you tried using the StyleSheet or TextFormat instead?

1 reply

Kenneth KawamotoCommunity ExpertCorrect answer
Community Expert
January 31, 2011

Have you tried using the StyleSheet or TextFormat instead?

NancyParker
Participating Frequently
February 1, 2011

It's true if I convert everything to TLF instead of Classic Dynamic Fields it avoids the bug that is wiping out my spacing value.  I tried to report the issue to Adobe as a bug ... but the help desk wrote back and said "they determined it was an issue for Coding/Development, i would request you to visit Adobe Developers website:- www.adobe.com/devnet.

I'm not sure how to find a way to report the issue from the devent pages.

I can replicate the problem on a test file with one frame that contained two text fields, one TLF and one Classic Dynamic.

My actionscript 3 was:

TLF_Box.text=("This is an example of TLF with a hanging indent.  The  first line has a value set to -27 with a corresponding margin of 27.");

bigBox.text=("This is an example of dynamic text with a hanging indent.  The first line has a value set to -27 with a corresponding margin of 27.");


And sure enough every time I save and re-open the file the classic dynamic box loses the -27 setting and no longer indents.

So the work around for now would be to convert everything to TLF.

Community Expert
February 1, 2011

I cannot replicate the problem you're experiencing, but in any case you can set the first line indentation with script easily:

import flash.text.TextFormat;

var tfmt:TextFormat = bigBox.defaultTextFormat;
tfmt.indent = 27;
bigBox.defaultTextFormat = tfmt;
bigBox.text = "This is an example of dynamic text with a hanging indent.  The first line has a value set to -27 with a corresponding margin of 27.";