# HG changeset patch # User wycc # Date 1287676659 -28800 # Node ID 80000948fcde367c3b3e6ae17a1b30389d22e9ba # Parent e4474cac20da26116dd97342cdc46a488684c680 Add callback function to load browser.svg at the end of the ani9mation. diff -r e4474cac20da -r 80000948fcde nodejs/examples/mce/mainmenu.js --- a/nodejs/examples/mce/mainmenu.js Thu Oct 21 23:56:55 2010 +0800 +++ b/nodejs/examples/mce/mainmenu.js Thu Oct 21 23:57:39 2010 +0800 @@ -112,8 +112,9 @@ var target = this.items[this.item]; var sx = 500 - target.center.x; var sy = 220 - target.center.y; - var an = new animate.shift(this.app,target,sx,sy,1); - an.start(); + var an = new animate.shift(this.app,target,sx,sy); + var self = this; + animate.run([an],0,1,function() {self.changePage();}); for(i=0;i