Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

referencing a movie clip from an array element...

Posted on 2002-03-19
6
Medium Priority
?
166 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

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.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

609 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