Skip to main content
Known Participant
March 24, 2012
Answered

help me please

  • March 24, 2012
  • 1 reply
  • 1266 views

hi.. how are you guys? i hope you fine.. i have just a little problem in my game and i couldn.t solve it!! its a quiz and i can only access the second frame and then stop

iam trying to explain it here with more details

package{

import flash.display.MovieClip;

import flash.events.MouseEvent;

import flash.events.Event;

public class admins extends MovieClip

{

public function admins()

{

s();

}

public function s(){

quiz.stop();

quiz.op1.addEventListener(MouseEvent.CLICK,a)

quiz.op2.addEventListener(MouseEvent.CLICK,b)

quiz.op3.addEventListener(MouseEvent.CLICK,c)

quiz.op4.addEventListener(MouseEvent.CLICK,d)

quiz.op5.addEventListener(MouseEvent.CLICK,f)

}

public function a (event:MouseEvent):void{

quiz.gotoAndStop(2)

}

public function b(event:MouseEvent):void{

quiz.gotoAndStop(2)

}

public function c (event:MouseEvent):void{

quiz.gotoAndStop(3)

quiz.gotoAndStop(3)

}

public function d (event:MouseEvent):void{

quiz.gotoAndStop(3)

}

public function f(event:MouseEvent):void{

quiz.gotoAndStop(3)

}

}

}

this just simple code i made to my problem if ((op1 and op2 in the frame 1 in the quiz)) its work after clicking it but (((op3 ,op4,op5. frame 2))) doesn.t work in this time to go to the next frame .

and i have more details in this example i made 3 sympols first one is the admins and i gave it class admins and this is the container , second its the quiz symbol and its inside admins, and last one the options and its in the quiz

thats all i hope you guys can help me in this
thank you

This topic has been closed for replies.
Correct answer Ned Murphy

If the last 3 buttons are not in the frame where that code is, then that code cannot be assigned to them.  You will either need to move their code to their frame, or have them in frame 1 and keep them invisible until frame 2.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
March 24, 2012

If the last 3 buttons are not in the frame where that code is, then that code cannot be assigned to them.  You will either need to move their code to their frame, or have them in frame 1 and keep them invisible until frame 2.

Known Participant
March 24, 2012

thaank you 

but can i ask you how can i move their code to their frame??

i mean in the same code?