Heya,
Thanks for such a great script - it's brilliant. But I just can't get this one item working.
We're pulling in swf's into the book, and want them to fire only when the page is turned. So wehave a stop frame on frame one, and will get it to gotoandplay.
But we have the following code in our class file:
var mz:IMegaZine;
function megazineSetup(mz:IMegaZine, page:IPage, even:Boolean):void {
page.addEventListener(even ? MegaZineEvent.VISIBLE_EVEN : MegaZineEvent.VISIBLE_ODD, onPageVisible);
}
function onPageVisible(e:MegaZineEvent):void {
var PageElements = new PageElements;
this.pageElements.gotoAndPlay(2);
// page is now visible
}
but I'm not sure how to call megazineSetup; because if we call it from the top of the class as megazineSetup(megazine:IMegaZine, page:IPage, even:Boolean);
we get the error:
1084: Syntax error: expecting rightparen before colon. - megazineSetup(megazine:IMegaZine, page:IPage, even:Boolean);
Any ideas

?
Chris