?
Solved

Need help with using VAR counter in actionscript 2

Posted on 2008-10-29
2
Medium Priority
?
430 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 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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 …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

770 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