annotate nodejs/examples/scribbo/testsvg.js @ 1496:042587afed2e

Add popup menu for transition
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 03 May 2011 12:35:04 +0800
parents c297ceec37f2
children
rev   line source
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
2 // vim: sw=4:ts=8:sts=4
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
3 var svg = require("svg");
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
4 var mbapp = require("mbapp");
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
5 var sys=require("sys");
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
6 var animate=require("animate");
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
7 var fs = require("fs");
1403
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
8 var s=0;
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
9 app = new mbapp.app(":0.0",1920,1080);
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
10 app.loadSVG("test1.svg");
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
11 app.addKeyListener(mbapp.KEY_LEFT, function() {
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
12 s--;
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
13 app.runToScene(s);
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
14 });
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
15 app.addKeyListener(mbapp.KEY_RIGHT, function() {
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
16 s++;
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
17 app.runToScene(s);
c297ceec37f2 Add exaple to illustrate the update bug
wycc
parents: 1380
diff changeset
18 });
1375
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
19 app.loop();
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
20
37dc1ce76bba Add example files for the coord_hide issue
wycc
parents:
diff changeset
21