view 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
line wrap: on
line source

// -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
// vim: sw=4:ts=8:sts=4
var svg = require("svg");
var mbapp = require("mbapp");
var sys=require("sys");
var animate=require("animate");
var fs = require("fs");
var s=0;
app = new mbapp.app(":0.0",1920,1080);
app.loadSVG("test1.svg");
app.addKeyListener(mbapp.KEY_LEFT, function() { 
    s--;
    app.runToScene(s);
});
app.addKeyListener(mbapp.KEY_RIGHT, function() { 
    s++;
    app.runToScene(s);
});
app.loop();