Skip to main content
Inspiring
June 3, 2006
Question

Left string

  • June 3, 2006
  • 3 replies
  • 197 views
Hello,

I have it
012
014
02
015
01
and I would like have
12
14
02
15
01

in visual basic I use right(ma_string, 2) but in actionscript ? please

do you have a solution

thank you I am beggin in actionscript



This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
June 3, 2006
i assume those are strings. if your strings always have length greater than or equal to two, you can use:

Inspiring
June 3, 2006
thank you

"DMennenoh **AdobeCommunityExpert**" <dave@blurredistinction.com> a �crit
dans le message de news: e5sg6q$eng$1@forums.macromedia.com...
> You can similar to right() using the length of the string:
>
> trace(ma_string.substr(ma_string.length - 2, 2));
>
> --
> Dave -
> Adobe Community Expert
> www.blurredistinction.com
> http://www.adobe.com/communities/experts/
>


Inspiring
June 3, 2006
You can similar to right() using the length of the string:

trace(ma_string.substr(ma_string.length - 2, 2));

--
Dave -
Adobe Community Expert
www.blurredistinction.com
http://www.adobe.com/communities/experts/