From: <no...@so...> - 2001-02-01 07:07:25
|
Bug #130684, was updated on 2001-Jan-31 23:07 Here is a current snapshot of the bug. Project: DynAPI 2 Category: API Extentions Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: robelix Assigned to : nobody Summary: weird PathAnimation.line bug Details: I wanted to move a layer aournd a square: function joinarrays( arr1, arr2) { var len = arr1.length; for (var i = 0; i <= arr2.length; i++) { arr1[i+len] = arr2[i]; } return arr1; } DynAPI.onLoad = function() { block = new DynLayer(); block.setSize(80,80); block.moveTo(0,0); block.setBgColor("red"); path = new PathAnimation(block); var line = PathAnimation.line(0,0, 100,0, 10); line = joinarrays(line, PathAnimation.line(100,0, 100,100, 10)); line = joinarrays(line, PathAnimation.line(100,100, 0,100, 10)); line = joinarrays(line, PathAnimation.line(0, 100, 0,0, 10)); path.addAnimation( line ); path.sleep(50); path.setLoops(0,true); DynAPI.document.addChild(block); path.playAnimation(0); } but it did crazy things - the third line was moving somewhere else I found out that I get the square when I switch x and y in the third call of Pathanimation.line - very weird (tried it only wiht Linux Netscape 4.75 so far) For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=130684&group_id=5757 |
From: <no...@so...> - 2001-02-01 11:33:40
|
Bug #130684, was updated on 2001-Jan-31 23:07 Here is a current snapshot of the bug. Project: DynAPI 2 Category: API Extentions Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: robelix Assigned to : nobody Summary: weird PathAnimation.line bug Details: I wanted to move a layer aournd a square: function joinarrays( arr1, arr2) { var len = arr1.length; for (var i = 0; i <= arr2.length; i++) { arr1[i+len] = arr2[i]; } return arr1; } DynAPI.onLoad = function() { block = new DynLayer(); block.setSize(80,80); block.moveTo(0,0); block.setBgColor("red"); path = new PathAnimation(block); var line = PathAnimation.line(0,0, 100,0, 10); line = joinarrays(line, PathAnimation.line(100,0, 100,100, 10)); line = joinarrays(line, PathAnimation.line(100,100, 0,100, 10)); line = joinarrays(line, PathAnimation.line(0, 100, 0,0, 10)); path.addAnimation( line ); path.sleep(50); path.setLoops(0,true); DynAPI.document.addChild(block); path.playAnimation(0); } but it did crazy things - the third line was moving somewhere else I found out that I get the square when I switch x and y in the third call of Pathanimation.line - very weird (tried it only wiht Linux Netscape 4.75 so far) Follow-Ups: Date: 2001-Feb-01 03:33 By: robelix Comment: sorry folks! PathAnimation.line is OK - it was my own bug: must be for (var i = 0; i < arr2.length; i++) in my joinarrays-function (I still wonder that this didn't cause problems with the first call, but anyway I've got it) ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=130684&group_id=5757 |
From: <no...@so...> - 2001-02-10 06:52:22
|
Bug #130684, was updated on 2001-Jan-31 23:07 Here is a current snapshot of the bug. Project: DynAPI 2 Category: API Extentions Status: Closed Resolution: None Bug Group: None Priority: 5 Submitted by: robelix Assigned to : nobody Summary: weird PathAnimation.line bug Details: I wanted to move a layer aournd a square: function joinarrays( arr1, arr2) { var len = arr1.length; for (var i = 0; i <= arr2.length; i++) { arr1[i+len] = arr2[i]; } return arr1; } DynAPI.onLoad = function() { block = new DynLayer(); block.setSize(80,80); block.moveTo(0,0); block.setBgColor("red"); path = new PathAnimation(block); var line = PathAnimation.line(0,0, 100,0, 10); line = joinarrays(line, PathAnimation.line(100,0, 100,100, 10)); line = joinarrays(line, PathAnimation.line(100,100, 0,100, 10)); line = joinarrays(line, PathAnimation.line(0, 100, 0,0, 10)); path.addAnimation( line ); path.sleep(50); path.setLoops(0,true); DynAPI.document.addChild(block); path.playAnimation(0); } but it did crazy things - the third line was moving somewhere else I found out that I get the square when I switch x and y in the third call of Pathanimation.line - very weird (tried it only wiht Linux Netscape 4.75 so far) Follow-Ups: Date: 2001-Feb-01 03:33 By: robelix Comment: sorry folks! PathAnimation.line is OK - it was my own bug: must be for (var i = 0; i < arr2.length; i++) in my joinarrays-function (I still wonder that this didn't cause problems with the first call, but anyway I've got it) ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=130684&group_id=5757 |