button symbol to make mcs visible one by one
Hi.
I have four movieclips sb1, sb2, sb3, sb4.
They all start off visible=false.
When I run my code upon clicking the btn it doesn't work.
I would appreciate any help.
Cheers.
Basically it's a sentence that I reveal word for word.
My dog is driving.
this.sb1.visible =false;
this.sb2.visible =false;
this.sb3.visible =false;
this.sb4.visible =false;
btn_integer = 0;
this.btn.addEventListener("click", clickHandler.bind(this));
function clickHandler(event)
{
btn_integer = btn_integer + 1;
If (btn_integer = 1)
{
this.sb1.visible = true;
}
If (btn_integer = 2)
{
this.sb2.visible=true;
}
If (btn_integer = 3)
{
this.sb3.visible=true;
}
If (btn_integer = 4)
{
this.sb4.visible=true;
}
}
