Copy link to clipboard
Copied
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!
Have you tried using the StyleSheet or TextFormat instead?
Copy link to clipboard
Copied
Have you tried using the StyleSheet or TextFormat instead?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.";
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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"
Find more inspiration, events, and resources on the new Adobe Community
Explore Now