actionscript counting end of movie clips

Joined
Aug 28, 2008
Messages
42
Reaction score
0
Points
6
Your Mac's Specs
Black MB - 2.4 GHz Intel Core 2 Duo - 4 GB DDR2 SDRAM - OSX 10.5.8
I'm new to flash and I'm having a bit of trouble getting some actionscript to work.

I have this in my main timeline:

numPopped = 0;
poppedCount.text = numPopped;


and this at the end of a few movie clips:

stop();
_root.numPopped++;
poppedCount.text = _root.numPopped;


It just stays at zero and doesn't update. Can anyone help me out, please?
 
OP
psychodork
Joined
Aug 28, 2008
Messages
42
Reaction score
0
Points
6
Your Mac's Specs
Black MB - 2.4 GHz Intel Core 2 Duo - 4 GB DDR2 SDRAM - OSX 10.5.8
Ugh, nevermind. I didn't realize I needed a _root before the .text part too. >_>
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top