Solved

Need help with using VAR counter in actionscript 2

Posted on 2008-10-29
2
423 Views
Last Modified: 2013-11-11
Hi,
I am trying to get the VAR counter to work on 2 or more movie clips. I want penguin 1 to ring the bell 170 times then go to "begin" fram and stop, I want penguin 2 to do the same thing (16times), but I can only get one to work, if you can help it would be great, thanks!

http://www.jdpdesignstudio.com/penguin.html
You can download my file here it's 5.5 MB
0
Comment
Question by:janapfremmer
2 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 125 total points
ID: 22834565
your problem seems more like a timing problem.
if you put some trace actions in place you might see what i'm refering to then you can fix it based on what you're trying to achieve.
the bell guy is a lot less frames then the drum guy.
each time the bell guy is looping and incrementing the counter.
by the time the drum guy gets to his frame that says check what the counter is the counter is already at 30 so the if < 16 thing won't work.
you could set 2 variables and have each one set it's own variable.

0
 

Author Comment

by:janapfremmer
ID: 24097725
Thank You!!!
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 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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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 what frame rate is, how to control it and what effect it has on the video.

864 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