 | 31: public function save():void { // 追加 32: for each (var sticky:Sticky in stickies) { 33: // 付箋に対応するURLを生成 34: var request:URLRequest = new URLRequest("http://localhost:3000/stickies/"+sticky.id+".xml"); 35: request.method = 'PUT'; 36: 37: // 変更するパラメータを生成 38: var variables : URLVariables = new URLVariables (); 39: variables['sticky[x]'] = sticky.window.x / Capabilities.screenResolutionX; 40: variables['sticky[y]'] = sticky.window.y / Capabilities.screenResolutionY; 41: variables['sticky[width]'] = sticky.window.width; 42: variables['sticky[height]'] = sticky.window.height; 43: variables['sticky[body]'] = sticky.editor.text; 44: request.data = variables; 45: 46: // 送信 47: var loader:URLLoader = new URLLoader(); 48: loader.load(request); 49: } 50: }
|  |