• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

referencing a movie clip from an array element...

Hi,

I'm trying to check the current frame of a movie clip based on the content of an array element. I've tried a couple of methods but they don't seem to work.

I tried this

if (array._currentframe == 3 ){}

and..

if (String(array)._currentframe == 3 ){}

Anyone know how I can do this?

I'm getting desperate, I need it for tomorrow...please help!
0
Raggy
Asked:
Raggy
  • 4
1 Solution
 
stef4sCommented:
what do you write into the Array.

what you can try is this


myArray = New Array();


myArray.push(_root.movie1)
myArray.push(_root.movie2)
myArray.push(_root.movie3)

//etc

for (i=0;i<myArray.length;i++)
{
trace(myArray[i]._currentFrame
}

I have not verfied that this works. give it a try.
0
 
stef4sCommented:
did this suggestion help?
0
 
jaspreet_bajajCommented:
hi
you should not use array._currentframe
because array is "key word" and you can not use it like this

what are you storing in array or it is a simple variable

jaspreet
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
stef4sCommented:
Raggy have you tried the abve suggestions.
0
 
RaggyAuthor Commented:
Sorry for not replying sooner, but I've not been able to try anything until yesterday.  I've managed to get it to work with a bit of tweaking, thanks alot for the help.
0
 
stef4sCommented:
sure
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now