Strip specific chunks of characters from string – substring! AS3

fieldColor.substring(2, fieldColor.length);

That’ll strip the first two items from fieldColor (ie. return the rest, minus the first 2 characters)

Tech Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑