Return to Snippet

Revision: 25232
at March 24, 2010 05:37 by LeeProbert


Updated Code
var linkStart:int = link.getAbsoluteStart();
					var linkEnd:int = linkStart+link.textLength;
					
					var textFlowLine:TextFlowLine = textFlow.flowComposer.findLineAtPosition(linkStart);
					var lineStart:int = textFlowLine.absoluteStart;
					var isStartOfLine:Boolean = linkStart==lineStart;

Revision: 25231
at March 24, 2010 05:37 by LeeProbert


Initial Code
var linkStart:int = link.getAbsoluteStart();
					var linkEnd:int = linkStart+link.textLength;
					
					var textFlowLine:TextFlowLine = textFlow.flowComposer.findLineAtPosition(linkStart);
					var lineStart:int = textFlowLine.absoluteStart;
					var isStartOfLine:Boolean = linkStart==lineStart;

Initial URL

                                

Initial Description

                                

Initial Title
Finding the position of an element within a TextFlow

Initial Tags
textmate, text, layout

Initial Language
ActionScript 3