No sir. I mean, can you make me a preset of a question swf? With a question, button choices, score on top right corner and the actionscript that you gave me. Because i need to see how you made it work. In short sir, an fla.file on how i should see where things are being put. Because i did what you said, to put this code in the frame where my buttons exist but it didn't work. So i need to see your work for me to know how you did it. ![]()
trace("test");
var correctAns:Button = B;
A.onRelease=checkAnsF;
B.onRelease=checkAnsF;
C.onRelease=checkAnsF;
D.onRelease=checkAnsF;
function checkAnsF():Void{
trace(this+" "+correctAns+" "+this._parent);
if(this==correctAns){
this._parent.completeF(1);
// use attachMovie to display "correct.swf"
} else {
this._parent.completeF(0);
// use attachMovie to display "wrong.swf"
}
}
you need to learn how to debug your own code. specifically, you need to learn how to use the trace function to pinpoint your problems.
once you pinpoint the problem, you should be able to solve that problem or then ask for help showing the relevant code with the trace that pinpoints the problem.
p.s. start new threads for new topics.
North America
Europe, Middle East and Africa
Asia Pacific