Enabling button AFTER Click

Hello,
here is what i am trying to accomplish:

  1. i have set of buttons which user have to click before the final button appears.
  2. each button after click will navigate to a certain frame with correct answer is being displayed.
  3. once there user can click back to navigate back to the initial page to continue clicking remaining buttons.

once all have ben clicked the final button appears allowing further navigation.

the situation is as follows:

flash counts if a ALL buttons have been clicked and only after that it shows the final one which upon clicking will navigate to another frame.

Help???Please:)

thank you very much… I have just arrived, let me try. i appreciate your support and help.

i liked the Super Button :stuck_out_tongue: in the file.sw
amm… the file is not Opening in my PC…:expressionless:
if you could just answer me this few Quastions ill be very Glad :slight_smile:

this is how i define the “Flags”? no other Actions ?

buttons_state = [0,0,0,0,0];

this is on the frame ActionScript ofcourse… yes?
how do i link those Flags to a buton ?


on(press/rollOver/release/etc'..:)){
 
    //what code do i put here ?
 
     buttons_state = [1,0,0,0,0];
 
    // just other Flag state? or at a different way?
    //(im sure that its in a diferent way :))
}


 
n=[COLOR=#000080]0[/COLOR];
[COLOR=#0000ff]for[/COLOR] [COLOR=#000000]([/COLOR]i=[COLOR=#000080]0[/COLOR];i<[COLOR=#000080]5[/COLOR];i++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR]A[COLOR=#000000][[/COLOR]i[COLOR=#000000]][/COLOR]==[COLOR=#000080]1[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
n++;
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR]n==[COLOR=#000080]5[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]gotoAndPlay[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]"special_frame"[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#000000]}[/COLOR]
 

n - what does ‘n’ refers to ?

(would it be more easyer if the file would have opend in my PC =) )

thanks in Advanced:thumb2:
Stas

Check if you can open the file now

no :frowning:

a message pops up telling me : unexpected file format:jailbreak

But, I saved it as Flash MX, are you using flash 5?, because I dont have flash 5 file format avalaible. Please tell me what flash version are you using.

i am using “Macromedia Flash MX 2004” :cyclops:

i have been doing some reading…
so now im stuck at the “if…” statement

ive defined the Array:

      firstArray = [0,0,0];

then ive changed the value of each “Flag” in the array by a button :

              on(press){
	              firstArray[0] = 1 ;
              }

did that to all of them (firstArray[0] , firstArray[1] , firstArray2]).

now i want to make the if statement like this :
If they all 1 => jump to “Special_Frame”

so it should look something like this:

if(firstArray[0]==1){
	if(firstArray[1]==1){
		if(firstArray[2]==1){
			gotoAndStop(Special_Frame);
		}
	}
}

is this corect? i mean…isn’t there an easyer way?

[U]P.S.[/U]
i could not Open your file in the end…but your messages helped me allot. ty :slight_smile:

There is an easier way
ActionScript Code:
[FONT=Courier New][LEFT]n=[COLOR=#000080]0[/COLOR];
[COLOR=#0000FF]for[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
n++;
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#0000FF]if[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]

this simple code just initialize a counter var (n) in 0 and make a count of the array members containing 1. So, you compare, if n==the number of elements of the array, it means that all your array memebers have been switched to 1, and its ready to go to special frame. else, it wont do nothing and will review again the next time it pass by this coded frame.

Here is again the file, I have saved it even as MX, it must work now :stuck_out_tongue:

this code is good for an array that has many elements i sopose…:slight_smile:
i have only 4…
ok …
it all works fine now :slight_smile:
Thank you for your help :slight_smile:

Stas

Hi
This is Bhaskar i have doubt in flash action script my qustion is below
i take one text box and 2 buttons when i will type in text then click on one button text will displayed on another button.
**if it possible plz help me **
thanking u

of course its possible, but I have to go now, Im back tonight :wink: