概要 | 構文エラーが出る |
---|---|
投稿者 | Parafla Quality |
状態 | |
カテゴリー | ActionScript |
投稿日 | 2008-04-05 (土) 19:20:52 |
バージョン | 1.37 |
point ={x:_x,y:_y}; this.localToGlobal(point); if (Math.random()*4<=1 and point.x>0 and point.x<300 and point.y>0 and point.y<300) { dx = _root.myship_x-point.x; dy = _root.myship_y-point.y; rad = Math.atan2(dy,dx); _root.attachMovie( "tekidan", "tekidan"+_root.count,1000+_root.count); _root.["tekidan"+_root.count]._x= point.x; _root.["tekidan"+_root.count]._y= point.y; _root.["tekidan"+_root.count]._rotation = rad/(Math.PI/180)-90; _root.count++; }
以下のような文をフレームアクションに入力し、構文チェックを押すとif (Math.random()*4<=1 and point.x>0 and point.x<300 and point.y>0 and point.y<300) {の部分にエラーがあると出てきます。どこがおかしいのかわからないのでどなたかよろしくお願いします。