Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Losing my Hanging Indent on Publish

New Here ,
Jan 30, 2011 Jan 30, 2011

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!

TOPICS
ActionScript
834
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 31, 2011 Jan 31, 2011

Have you tried using the StyleSheet or TextFormat instead?

Translate
Community Expert ,
Jan 31, 2011 Jan 31, 2011

Have you tried using the StyleSheet or TextFormat instead?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 01, 2011 Feb 01, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2011 Feb 01, 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.";
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 01, 2011 Feb 01, 2011

Interesting.

I still loose the property value for bigBox on re-open ... but the action script setting implements the indent just fine.  This may well be easier than clicking through all of those fields in my larger document.

import flash.text.TextFormat;
var tfmt:TextFormat = bigBox.defaultTextFormat;
tfmt.indent = -27;

Deep bow of thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2011 Feb 01, 2011
LATEST

Ah, I finally noticed you are setting the negative value - I thought it was your typo

If you have a lot of TextFields with this same characteristics, the best way is to create your own Class that extends TextField and implements the characteristics. This way, all text fields made form the Class will inherit the same characteristics. And if you change something in the Class it will be applied to all instances instantly - no more "clicking through all of those fields in my larger document"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines