If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member shoffman3572's Avatar
    Join Date
    Jul 2008
    Fullerton, CA
    Member #
    Not sure if this post belongs here or under 'other' in the programming ... but..
    I was wondering if any could tell me how to obtain the index number of an element in an Actionscript 3.0 array. After some searching around the web I found code that'll do it in AS2 - but it doesn't work in AS3.
    I'm not too up on my AS programming so if someone could point me in the right direction? - thanks.
    to be clear
    var names:Array = new Array("Peter","John","Stewart");
    I want to be able to assign a variable to = the index position of say... John - which should = 1


  3. #2
    Senior Member
    Join Date
    Jun 2005
    Atlanta, GA
    Member #
    1 times
    should do it, I believe.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search tags for this page

actionscript array index value
as2 get array index
as3 array find
as3 get index of
as3 index number array

as3 index of element in a for each

flash as3 get index number from array items
how to get current position in array actionscript
index of as3
index of element in array as3
Click on a term to search for related topics.
All times are GMT -6. The time now is 02:10 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: