Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-04-2007, 07:11 AM   #1
Natoush
Registered User
 
Join Date: Jan 2007
Posts: 11
Default randomly clicked buttons

lets say i have about 6 buttons..
what i wanna do is... after they're ALL clicked (in no specific order) to give me a screen sayin (picture 2) or sth... and jump to the next frame...

so.. how can i do that?
Natoush is offline   Reply With Quote
Old 11-04-2007, 08:57 AM   #2
Aristocratic
Actionscript Library
 
Join Date: Oct 2007
Location: Aussie
Posts: 68
Send a message via MSN to Aristocratic
Default

Try using a number variable
Each time a button is clicked you could have it increment a variable and turn itself off. Then when it equals 6 show the screen

Sample code (This was put in a single frame in the root timeline)

Code:
var counter:Number = 0

Button1.onRelease = function(){
    this.enabled = false
    counter++
}

this.onEnterFrame = function(){
     if (counter >= 6){
     delete this.onEnterFrame
     //Code to show screen
     }
}

Last edited by Aristocratic; 11-04-2007 at 09:10 AM..
Aristocratic is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple conditions on MC buttons olivestreetprods ActionScript 2.0 0 09-27-2007 06:52 PM
Simple Buttons with actionscript not working... paulh22 ActionScript 2.0 3 03-04-2007 10:36 PM
Start floating buttons randomly on stage... SkyNarc ActionScript 2.0 0 02-15-2006 06:32 PM
How do i hide buttons and make them appear on a mouse event? DalAlarm ActionScript 2.0 1 11-15-2005 09:38 AM
buttons in external swf halkiede ActionScript 2.0 2 02-16-2005 04:49 AM


All times are GMT. The time now is 07:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.