Solved

referencing a movie clip from an array element...

Posted on 2002-03-19
6
159 Views
Last Modified: 2010-04-03
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
Comment
Question by:Raggy
  • 4
6 Comments
 
LVL 5

Accepted Solution

by:
stef4s earned 100 total points
ID: 6881957
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
 
LVL 5

Expert Comment

by:stef4s
ID: 6887884
did this suggestion help?
0
 
LVL 6

Expert Comment

by:jaspreet_bajaj
ID: 6898217
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Expert Comment

by:stef4s
ID: 6898485
Raggy have you tried the abve suggestions.
0
 

Author Comment

by:Raggy
ID: 6902059
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
 
LVL 5

Expert Comment

by:stef4s
ID: 6902123
sure
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now