How can I detect when the last container in my flow is full?
I have a bunch of linked containers which I am flowing text through. How can I detect when the text has filled a container? there's an overflowPolicy so I assume this can be detected.
I have a bunch of linked containers which I am flowing text through. How can I detect when the text has filled a container? there's an overflowPolicy so I assume this can be detected.
Hi,
I used this :
private function IsOverset(textFlow:TextFlow):Boolean {
var zeComposer:IFlowComposer=textFlow.flowComposer;
var iTextLen:int=textFlow.textLength;
var iNoController:int=zeComposer.findControllerIndexAtPosition(iTextLen - 1);
return (iNoController == -1); } HTH, J.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.