Sure.
Here is:
JavaScript code:
Main timeline code:
this.setButtons = function(container)
{
container.on("click", function(e)
{
var buttonIndex = e.currentTarget.getChildIndex(e.target);
exportRoot.popup.gotoAndStop(buttonIndex + 1 + container.children.length * exportRoot.buttons.currentFrame);
exportRoot.popup.closeButton.on("click", exportRoot.dismissPopup);
exportRoot.popup.rec.on("click", exportRoot.dismissPopup);
});
}
this.dismissPopup = function(e)
{
exportRoot.popup.gotoAndStop(0);
}
Popup code:
this.stop();
Buttons code (frame 0):
this.stop();
if (!this.moreButton.hasEventListener("click"))
this.moreButton.on("click", function(e){this.gotoAndStop(this.currentFrame + 1);}, this);
exportRoot.setButtons(this.buttonsGrid);
Buttons code (frame 1):
if (!this.backButton.hasEventListener("click"))
this.backButton.on("click", function(e){this.gotoAndStop(this.currentFrame - 1);}, this);
exportRoot.setButtons(this.buttonsGrid1);
FLA download:
animate_cc_html5_buttons_and_popups.zip - Google Drive
Regards,
JC