Nope
- Started
- Last post
- 4 Responses
- CyBrainX
I don't think action script's text format class works.
I have a text field in a movie clip with an instance name "type" On frame 1 I have this script:type.autoSize = false;
var pressReleasesFormat:TextFormat = new TextFormat();
pressReleasesFormat.wordWrap = true;
pressReleasesFormat.bullet = true;
type.setTextFormat(pressReleases...I see no bullets and the text goes way to the right as if the text box is autosizing or the text is not wrapping. The font is embedded and anti-aliased. I'm publishing Flash 6.
- fugged0
try
pressReleasesFormat = new TextFormat();
type.setTextFormat(pressReleases...
- CyBrainX0
Thanks, that worked, but it still won't recognize line breaks.
I'm going to move on to making the whole text box html text.
Macromedia has some work to do on the textFormat class. It's either not very reliable or it's poorly documented.
- CyBrainX0
I had to manually set the dyanamic text box to be multiline in the property inspector. The action script woudn't set it.
- CyBrainX0
This will work in Flash 7: var pressReleasesFormat: TextFormat = new TextFormat()
It's called type casting (: TextFormat). It won't work in Flash 6 and that was the problem. I don't know where it's documented, but it's not on any page I ever saw before. I never knew what it meant before.