comparison 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
comparison
equal deleted inserted replaced
1032:148ce30a861d 1033:8c2862e40c28
19 //self.init(); 19 //self.init();
20 } 20 }
21 MainMenu.prototype.init=function() 21 MainMenu.prototype.init=function()
22 { 22 {
23 app.loadSVG("main.svg"); 23 app.loadSVG("main.svg");
24 app.changeScene(1);
24 25
25 var i; 26 var i;
26 var self = this; 27 var self = this;
27 this.items=[]; 28 this.items=[];
28 for(i=0;i<8;i++) { 29 for(i=0;i<8;i++) {
148 animate.run([an], 0, 1); 149 animate.run([an], 0, 1);
149 } 150 }
150 } 151 }
151 152
152 MainMenu.prototype.changePage=function() { 153 MainMenu.prototype.changePage=function() {
153 this.app.loadSVG("preview.svg"); 154 this.app.changeScene(2);
154 } 155 }
155 156
156 exports.MainMenu=MainMenu; 157 exports.MainMenu=MainMenu;