Return to Snippet

Revision: 9614
at November 14, 2008 07:10 by meetneps


Initial Code
var desc:String;
var description:TextField = new TextField();
description.text = (desc.length > 25) ? (desc.substring(0,25) + "..." : desc
addChild(description)

Initial URL

                                

Initial Description
A short way of trimming text and ... to it in AS3

Initial Title
Short way of adding ... to long text

Initial Tags

                                

Initial Language
ActionScript 3