Forums

ForumsProgramming Forum

Actionscript 2.0 help

Posted Apr 25, '08 at 5:26pm

Ninjacube

Ninjacube

622 posts

I've been working with actionscript for about a week now.
My button works but I want actionscript to count how many times its been clicked so I can use that to have the number appear as a symbol on the screen for an amateur point&click game. 

If you have any idea how to accomplish this or know someone who does post it here.

~thanks~

 

Posted Apr 25, '08 at 6:48pm

MikeVarilek

MikeVarilek

38 posts

//on frame
var n:Number = 0;
//on button
on (release) {
n++;
}
and use the apply the "n" to a dynamic text box.

 

Posted Apr 25, '08 at 11:08pm

Ninjacube

Ninjacube

622 posts

thanks this'll help alot

 
Reply to Actionscript 2.0 help

You must be logged in to post a reply!