Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 02-06-2003, 08:18 AM   #1
vosgien
member
 
Join Date: Dec 2001
Location: France
Posts: 923
Default indexOf() syntax - help please !!!

Hi,
I have a bunch of mc's, instance name is 1st, 2nd 3rd and so on.
I want to display the names in a textBox ( called label) as 1, 2, 3, and so on.

So my code is/should be

label = _name.indexOf( what should I put in here to remove the last 2 letters )

if I put label = _name.indexOf("st");
this works well with 1st, but (obviously) not with 2nd

I have done search here and looked at the AS dic, but cannot find what I am looking for

Any help, as ever, greatly appreciated

Cheers

Vosgien
vosgien is offline   Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:49 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.