Mercurial > MadButterfly
comparison nodejs/mbapp.js @ 1422:6fa411fd9549
Commit merged result
author | wycc |
---|---|
date | Wed, 06 Apr 2011 21:35:21 +0800 |
parents | c918b79892ab |
children | 167873cd35c5 |
comparison
equal
deleted
inserted
replaced
1411:5dd46a4f6257 | 1422:6fa411fd9549 |
---|---|
197 app.prototype.generateScaleTween=function(src,dest,p) { | 197 app.prototype.generateScaleTween=function(src,dest,p) { |
198 sys.puts("p="+ p); | 198 sys.puts("p="+ p); |
199 src.hide(); | 199 src.hide(); |
200 // Duplicate the group | 200 // Duplicate the group |
201 var nodes = src.children; | 201 var nodes = src.children; |
202 if (src.dup) { | 202 //if (src.dup) { |
203 src.dup.remove(); | 203 // src.dup.remove(); |
204 src.dup = null; | 204 // src.dup = null; |
205 } | 205 //} |
206 if (src.dup == null) { | 206 if (src.dup == null) { |
207 var dup = this.mb_rt.coord_new(src.parent); | 207 var dup = this.mb_rt.coord_new(src.parent); |
208 for (i in nodes) { | 208 for (i in nodes) { |
209 var c = nodes[i]; | 209 var c = nodes[i]; |
210 var ng = this.mb_rt.coord_new(dup); | 210 var ng = this.mb_rt.coord_new(dup); |
250 } | 250 } |
251 | 251 |
252 app.prototype.generateScaleTweenObject=function(coord,src,dest,p,id) { | 252 app.prototype.generateScaleTweenObject=function(coord,src,dest,p,id) { |
253 //sys.puts("xxxxxxx"); | 253 //sys.puts("xxxxxxx"); |
254 //sys.puts("dest="+dest); | 254 //sys.puts("dest="+dest); |
255 // sys.puts("src=["+src.sx+","+src.sy+","+src.r+","+src.tx+","+src.ty); | 255 sys.puts("src=["+src.sx+","+src.sy+","+src.r+","+src.tx+","+src.ty); |
256 //sys.puts("id="+id+" dest=["+dest.sx+","+dest.sy+","+dest.r+","+dest.tx+","+dest.ty); | 256 sys.puts("id="+id+" dest=["+dest.sx+","+dest.sy+","+dest.r+","+dest.tx+","+dest.ty); |
257 //sys.puts("src.center="+src.center); | 257 //sys.puts("src.center="+src.center); |
258 //sys.puts("src.center.x="+src.center.x+" src.center.y="+src.center.y); | 258 //sys.puts("src.center.x="+src.center.x+" src.center.y="+src.center.y); |
259 if (src == null) return; | 259 if (src == null) return; |
260 var p1 = 1-p; | 260 var p1 = 1-p; |
261 var x1 = src.center.x; | 261 var x1 = src.center.x; |