Copy link to clipboard
Copied
Hi
i'm in testing with a trial version of Flash Prof cs5.5.
An application that work correctly with old version 1 of TLF, when use method tlf.textFlow.flowComposer.updateAllControllers(); return the error in title.
there are differences in the parameters among old and new version?
there are settings in Flash for use the old version textLayout_1.0.0.595.swz with cs5.5.
thans in advance
JeanPaul
Copy link to clipboard
Copied
Sorry
I've been hasty, I've gone more to fund of the problem, and this is my thought.
The problem is born on some operations effected on the TlfTextField, for example:
- if I work with updateAllControllers on textFlow property of a TLFtextField, return #1009 error (in the preceding one release work correctly)
- when I use the TLFtextField.getCharBoundaries(index), return the same error (in the preceding one release work correctly).
I can bypass the problem on updateAllControllers using a TextFlow type field, but getCharBoundaries work only with TLFtextField and i cannot bypass the problem.
someone know if it is a bug of the release 2 of textLayoutFramework?
Copy link to clipboard
Copied
I just tried your senario. I can't reproduce it in my simple project... Can you share your code scrapt to us so that we can identify where the problem is.
One more idea. Please try to operate the TLFTextField after your MovieClip has been added to the stage. I always try to operate the TLFTextField using the following codes:
package {
import flash.display.MovieClip;
import flash.events.Event;
import fl.text.TLFTextField;
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.events.CompositionCompleteEvent;
public class test extends MovieClip {
private var activeFlow:TextFlow = null;
public function test() {
// constructor code
super();
trace("hello world");
addEventListener(Event.ADDED_TO_STAGE, importxml);
}
private function importxml(evt:Event):void
{
trace("importxml");
activeFlow = testText.textFlow;
activeFlow.flowComposer.updateAllControllers();
}
}
}
Copy link to clipboard
Copied
thanks Gang Cai for your interest.
Yes in simple textFlow it seems that all correctly works, and I think that in the tests simples textFlow are used.
Now i've installed again the CS5 version of Flash Professional, and all works correctly.
The code that I use is very complex, and I've difficulty to post here, but when I've a free moment I undertake me to post a small code but that produces the aforesaid errors.
I think that the new version CS5.5 and Text Layout Framework have some incompatibilities, and I hope to be able to post in expectancy concrete examples.
Thanks for all.