Learning to Convert Flash to HTML5 Part 3
Just when I think I have it figured out . . . .
The attached is a very simple animation with a single movieclip and four buttons. So there are four event listeners calling four functions telling the movie to play at a certain spot. To make sure learners play it sequentially, only the button they should play next is on the stage. The first button knows it's a button but doesn't perform the assigned command. I'm hoping somebody can tell me what I'm doing wrong.
It's less than 40 lines of code. Any help would be greatly apprecited!

this.BrakeChamber.gotoAndStop("On");
this.SpringApply.alpha=0;
this.ServiceApply.alpha=0;
this.ServiceRelease.alpha=0;
SpringRelease.addEventListener("click", SpringReleasing.bind(this));
function SpringReleasing(e)
{
this.BrakeChamber.gotoAndPlay("On");
this.SpringRelease.alpha=0;
this.ServiceApply.alpha=1;
}
SpringApply.addEventListener("click", SpringApplying.bind(this));
function SpringApplying(e)
{
this.BrakeChamber.gotoAndPlay("SBOff");
this.SpringApply.alpha=0;
this.SpringRelease.alpha=1;
}
ServiceApply.addEventListener("click", ServiceApplying.bind(this));
function ServiceApplying(e)
{
this.BrakeChamber.gotoAndPlay("Applied");
this.ServiceApply.alpha=0;
this.ServiceRelease.alpha=1;
}
ServiceRelease.addEventListener(MouseEvent.CLICK, ServiceReleasing.bind(this));
function ServiceReleasing(e)
{
this.BrakeChamber.gotoAndPlay("Release");
this.ServiceRelease.alpha=0;
this.SpringApply.alpha=1;
}
