| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2007
Posts: 11
|
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? |
|
|
|
|
|
#2 |
|
Actionscript Library
|
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.. |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |