diff nodejs/examples/mce/mainmenu.js @ 1033:8c2862e40c28

Change the main.svg to be the multi scene format. Use change Scene to switch from main to viewer page.
author wycc
date Mon, 22 Nov 2010 22:58:37 +0800
parents e45ad25a1462
children 4072a302b207
line wrap: on
line diff
--- a/nodejs/examples/mce/mainmenu.js	Mon Nov 22 22:44:27 2010 +0800
+++ b/nodejs/examples/mce/mainmenu.js	Mon Nov 22 22:58:37 2010 +0800
@@ -21,6 +21,7 @@
 MainMenu.prototype.init=function()
 {
     app.loadSVG("main.svg");
+    app.changeScene(1);
 
     var i;
     var self = this;
@@ -150,7 +151,7 @@
 }
 
 MainMenu.prototype.changePage=function() {
-    this.app.loadSVG("preview.svg");    
+    this.app.changeScene(2);
 }
 
 exports.MainMenu=MainMenu;