Changeset 36050
- Timestamp:
- 11/30/09 21:54:10 (3 years ago)
- Location:
- lang/haxe/Tonyu2
- Files:
-
- 6 modified
-
Projects/test/Tama.tonyu (modified) (1 diff)
-
Projects/test/Test.tonyu (modified) (1 diff)
-
Projects/test/haxe/Tama.hx (modified) (1 diff)
-
Projects/test/haxe/Test.hx (modified) (1 diff)
-
Projects/test/test.swf (modified) (previous)
-
htdocs/Project.class.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/haxe/Tonyu2/Projects/test/Tama.tonyu
r36049 r36050 2 2 3 3 while (x<500) { 4 x=x+ 5;4 x=x+3; 5 5 y=y+vy; 6 6 update(); -
lang/haxe/Tonyu2/Projects/test/Test.tonyu
r35996 r36050 8 8 vx=vx+0.1; 9 9 y=y+0.2; 10 if (vx>3) vx=0 ;10 if (vx>3) vx=0-1; 11 11 update(); 12 12 } -
lang/haxe/Tonyu2/Projects/test/haxe/Tama.hx
r36049 r36050 12 12 } 13 13 case 2: 14 x=(x+ 5);14 x=(x+3); 15 15 y=(y+vy); 16 16 state=4; -
lang/haxe/Tonyu2/Projects/test/haxe/Test.hx
r35996 r36050 25 25 } 26 26 case 4: 27 vx= 0;27 vx=(0-1); 28 28 state=6; 29 29 case 5: -
lang/haxe/Tonyu2/htdocs/Project.class.js
r36049 r36050 5 5 } catch(e) {alert(e);} 6 6 }; 7 } 8 function pos(x,y) { 9 return {position:"absolute", left:x, top:y}; 10 } 11 function posDiv(x,y,cont) { 12 return ["div",{style:pos(x,y)},cont]; 7 13 } 8 14 Project =Class.create({ … … 15 21 var t=this; 16 22 t.editor=tag("textarea",{rows:15 , cols:80}); 17 t.fileList=tag("div" );18 t.swfArea=tag("div" );23 t.fileList=tag("div",{style:pos(420,10)}); 24 t.swfArea=tag("div",{style:pos(10,10)}); 19 25 $tag("body").set([["div", "プロジェクト", t.name], 20 26 t.swfArea, 21 t.fileList, t.editor, 22 ["button",{onclick:function(){t.saveTonyuSource()}},"SAVE"], 23 ["button",{onclick:function(){t.run()}},"Run"] 24 // ["button",{onclick:t.saveTonyuSource.bind(this)},"SAVE"] 27 t.fileList, 28 posDiv(500,10,[ 29 t.editor, 30 ["button",{onclick:function(){t.saveTonyuSource()}},"SAVE"], 31 ["button",{onclick:function(){t.run()}},"Run"] 32 ]) 25 33 ]); 26 34 attachIndentAdaptor(t.editor.target); … … 79 87 t.saveTonyuSourceAs( t.currentSourceName, t.editor.getAttr("value") ); 80 88 }, 81 make: function ( ) {89 make: function (afterMake) { 82 90 var t=this; 83 91 new Ajax.Request( … … 89 97 }); 90 98 function showResponse(res) { 91 alert(res); 99 //alert(res); 100 afterMake(); 92 101 } 93 102 }, 94 103 run: function () { 95 104 var t=this; 96 t.make(); 97 t.swfArea.set(swf(t.homeURL+"/swf")); 105 t.make(function() { 106 setTimeout(function () { 107 t.swfArea.set(swf(t.homeURL+"/swf")); 108 },500); 109 }); 98 110 } 99 111 });
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)