Share this Page URL

Chapter 2. Objects > TextRun object - Pg. 326

Objects Example 326 The following example retrieves the size of the character at index 2 and shows the result in the Output panel: fl.outputPanel.trace(fl.getDocumentDOM().selection[0].getTextAttr("size", 2)); Availability Flash MX 2004. Usage Description Property; a string that represents the target property of the text field. This property works only with static text. Example The following example gets the target property of the text field in the first frame of the top layer of the current scene and shows it in the Output panel: fl.outputPanel.trace(fl.getDocumentDOM().getTimeline().layers[0].frames[0]. elements[0].getTextAttr("target"));