Does it work, anyone?
It doesn't work for me.
It seems that the functions aren't being called at all.
I've modified the codes to include trace messages as follows:
---------------------------------------------------------------------------------------------------------------------
var pageNumber:int;
function megazineSetup(mz:*, ps:*):void {
trace ("i am here");
pageNumber = ps.number + (ps.number & 1);
mz.addEventListener("page_change", handlePageChange, false, 0, true);
}
function handlePageChange(e:*):void {
trace ("i am there");
if (e.newPage == pageNumber) {
// Now main page
// play();
for (var i = 0; i < particlesArray.length; i++) {
var particle = particlesArray
;
particle.y += particle.speedY;
particle.x += particle.speedX;
//If the particle is below the bottom, position it back to the top
if (particle.y > stage.stageHeight) {
particle.y = 0;
particle.x = Math.random() * stage.stageWidth;
}
}
} else if (e.oldPage == pageNumber) {
// No longer main page
stop();
}
}
---------------------------------------------------------------------------------------------------------------------
The result in the console shows:
Type "help" for command listing.
** [00:17:12] [ MegaZine ] System: MegaZine Version 2.0.1 initializing...
** [00:17:12] [ MegaZine ] Notice: Begin loading XML data from file 'http://lo...zine.mz3?r91234639=47067836'.
** [00:17:12] [ MegaZine ] Notice: Parsing settings: step 1 (engine settings).
** [00:17:12] [ Settings ] System: Disabling notices.
Nothing was printed at all.
Please help. (Urgent)
Mike