var loader = new Std.loader(); loader.basePath("http://source.stdjs.com/0.1/").load("plugin/smoothWheel.js",function(){ console.log(this.success); });