svnno****@sourc*****
svnno****@sourc*****
2009年 9月 12日 (土) 23:40:17 JST
Revision: 1240 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1240 Author: dhrname Date: 2009-09-12 23:40:16 +0900 (Sat, 12 Sep 2009) Log Message: ----------- Modified Paths: -------------- branches/05x/051/sie.js Modified: branches/05x/051/sie.js =================================================================== --- branches/05x/051/sie.js 2009-09-12 12:17:25 UTC (rev 1239) +++ branches/05x/051/sie.js 2009-09-12 14:40:16 UTC (rev 1240) @@ -1836,8 +1836,8 @@ end.synchParser(ele.getAttribute("end")); begin.indefinite = false; end.indefinite = false; - this.to = ele.getAttribute("to"); - this.attrName = ele.getAttribute("attributeName") + this.to = ele.getAttribute("to") || ""; + this.attrName = ele.getAttribute("attributeName"); this.transformable = matrix; this.beginEvent = begin; this.endEvent = end; this.currentTime = 0; @@ -1846,7 +1846,8 @@ } //timeLineはアニメーションのタイムラインとして、フレームを再生する際に使用 NAIBU.timeLine = []; -STSetElement.prototype.set = function() { +STSetElement.prototype.set = function(sw, sh) { + this.w = sw; this.h = sh; try{ if (this.beginEvent.event !== "") { var tb = this.beginEvent; @@ -1867,9 +1868,15 @@ } STSetElement.prototype.frame = function() { if (this.beginEvent.isFired(this.currentTime) && !this.endEvent.isFired(this.currentTime)) { - this.tar.parentNode.setAttribute(this.attrName, this.to); + var target = this.tar.parentNode; //変更される対象要素 + alert(""); this.children = []; - this.chset(this.tar.parentNode,this.transformable, this.width, this.height); + if (target.nodeName === "group") { + this.chset(target, this.transformable, this.width, this.height); + } else { + this.chset({childNodes:[target]}, (new Matrix(1,0,0,1,0,0)), this.width, this.height); + } + stvsetob(this.children,this.w,this.h); } else if(this.endEvent.isFired(this.currentTime)){ this.beginEvent.indefinite = true; this.endEvent.indefinite = true;