Solved

Need help with using VAR counter in actionscript 2

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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 this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

717 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