Be a Supporter!

array movie clip question

  • 250 Views
  • 1 Reply
New Topic Respond to this Topic
ronk
ronk
  • Member since: Dec. 23, 2007
  • Offline.
Forum Stats
Member
Level 13
Programmer
array movie clip question Feb. 19th, 2012 @ 05:07 PM Reply

so i have an array that has movie clips in it, and i need to find the y coordinate of a movieClip in that array.
so for example, is there a way to make
array[2].y
return the y value of the movie clip in the array at that posisiton?

milchreis
milchreis
  • Member since: Jan. 11, 2008
  • Offline.
Forum Stats
Member
Level 26
Programmer
Response to array movie clip question Feb. 19th, 2012 @ 05:14 PM Reply

At 5 minutes ago, ronk wrote: so i have an array that has movie clips in it, and i need to find the y coordinate of a movieClip in that array.
so for example, is there a way to make
array[2].y
return the y value of the movie clip in the array at that posisiton?

that is the code to get the y property of the 3rd element of the array.
What's the problem with it?

If it doesn't work, make sure everything is defined properly.