Solved

Need help with using VAR counter in actionscript 2

Posted on 2008-10-29
2
422 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

760 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

21 Experts available now in Live!

Get 1:1 Help Now