samedi 27 février 2016

Split if letters > at 10 in AS3

I'm trying to split every words that contains more than 10 letters.

How can I do ?

I did :

if (item.title.length > 10){
        trace("item.length>10"); // 0
// What should I put here in order to erase the letters after the 10th one ?
}

Aucun commentaire:

Enregistrer un commentaire