Solved

referencing a movie clip from an array element...

Posted on 2002-03-19
6
158 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

759 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

20 Experts available now in Live!

Get 1:1 Help Now