?
Solved

referencing a movie clip from an array element...

Posted on 2002-03-19
6
Medium Priority
?
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 5

Accepted Solution

by:
stef4s earned 300 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses

777 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