Solved

Need help with using VAR counter in actionscript 2

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't see Flash on IE Windows Apps - Windows 8.1 4 394
Youtube video error 30 771
Trying to contour a nose in a face portrait in After Effects 5 101
Adobe Indesign CS6 4 116
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…
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): …
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…

776 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