ใใฎ่จไบใฏใA *ใขใซใดใชใบใ ใไฝฟ็จใใๆใๅ็ดใชใในๆค็ดขใๅฎ่ฃ
ใใAStarใณใณใใผใใณใใฎ่ชฌๆใงใใ ใใฎใขใซใดใชใบใ ใฎๅฎ่ฃ
ใซใฏๅคใใฎใฝใผในใณใผใใใใใพใใใ็งใๆๆกใใใณใณใใผใใณใใฏไฝฟใใใใใๅๅใซๆๆธๅใใใฆใใพใใ ใกใฝใใใจใใญใใใฃใฎๆฐใๅฐใชใใซใใใใใใใใใฎใณใณใใผใใณใใฏ้ๅธธใซๆ่ปใงใใใๅคใใฎๅ้ใซ้ฉ็จใงใใพใ๏ผใใกใใใใฒใผใ ้็บ่
ใฏๆใๆฐใซๅ
ฅใฃใฆใใพใ๏ผใ ใณใณใใผใใณใใฏใ่ชญ่
ใฎๅธๆใจใณใกใณใใซๅพใฃใฆใใใซ้็บใใใพใใ ใใใใฃใฆใ็งใฏใกใผใซใพใใฏใณใกใณใใง็งใซๆธใใฆใใใใใจใซ่ๅณใใใใในใฆใฎไบบใซใ้กใใใพใใ
ใณใณใใผใใณใใใกใคใซใฏๆฌกใฎๅ ดๆใซใใใพใใ
1๏ผ
depositfiles.com/files/ptsxof3p92๏ผ
ifolder.ru/14260428ๆค็ดขใฎๆฌ่ณชๆค็ดขใๆๅใใใใซใฏใ็นๅฎใฎใจใณใใฃใใฃใ็งปๅใใฆใในใๆค็ดขใใๅนณ้ขใใใฟใคใซใใซๅๅฒใใๅฟ
่ฆใใใใพใ
๏ผๅณ1ใๅ็
ง๏ผ ใ ๅๅใจใใฆใใใฎใใใชใใฃใผใซใใซ้ขใใๆ
ๅ ฑใใชใใธใงใฏใใฎ2ๆฌกๅ
้
ๅใซๆ ผ็ดใใพใใ

ๅณ1-ใใฟใคใซใใฎใใฃใผใซใ๏ผใใคใณใใใใใฟใคใซใฏ้ๅฎณ็ฉใงใ๏ผ
ๆใๅ็ดใชๅ ดๅใฎใใฟใคใซใใ่ชฌๆใใๅใชใใธใงใฏใ๏ผไปๅพใฏใใฟใคใซใใงใฏใชใใใใผใใใจใใ็จ่ชใซๅใๆฟใใพใใใ๏ผใงใฏใใใฎๅบงๆจใ็ป้ขใซไฟๅญใใใใใฎใฟใคใซใ้ๅฎณ็ฉใใฉใใใฎใตใคใณใไฟๅญใใใพใใ ๅๅใจใใฆใใใใฏใใผใซๅผใงใใใ
trueใฎๅ ดๅใใใฎใใผใใฏ้ๅฎณ็ฉใงใใใ
falseใฎๅ ดๅ
ใ้้ใใใใชใผใใผใใงใใ ใณใณใใผใใณใใ้็บใใใจใใซใใ
้ๅฎณใใใ ใใจใใ็จ่ชใไฝๆใใพใใ;ใณใณใใผใใณใใฎๅไฝใ่ชฌๆใใใฎใซๅฝน็ซใกใพใใ ้ๅฎณใใใใฏใๅใใผใใฎ้้ๆง๏ผใใผใใ้ๅฎณใงใใใใฉใใ๏ผใ็นๅพดไปใใใใผใซๅผใๆ ผ็ดใใ2ๆฌกๅ
้
ๅใงใใ ้ๅฎณ็ฉใใใใซๅบใฅใใฆใใณใณใใผใใณใใฏใในใๆค็ดขใใพใใ
ๆฌกใซใๆใๅ็ดใชไพใไฝฟ็จใใฆ้ๅฎณ็ฉใใใใไฝๆใใใณใณใใผใใณใใฎใกใฝใใใซ้ฒใฟใพใใใใ 5 x 7ใฎใใฃใผใซใใไฝๆใใไธ้จใฎใปใซใ้้ใงใใชใใใใซใใๅ ดๅใๆฌกใฎใใใซใใพใใ
1๏ผๅใใผใใfalseใซ่จญๅฎใใฆ้ๅฎณ็ฉใใใใๅๆๅใใพใ-้้ใใ็กๆใฎใใผใ
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .
var obstacle_map:Array=[];
for ( var i: int =0; i<5; i++) {
obstacle_map[i]=[];
for ( var j: int =0; j<5; j++) {
obstacle_map[i][j]= false ;
}
}
2) , true.
obstacle_map[0][0]= true ;
obstacle_map[1][1]= true ;
obstacle_map[2][1]= true ;
obstacle_map[2][3]= true ;
obstacle_map[3][3]= true ;
obstacle_map[4][3]= true ;
obstacle_map[0][4]= true ;
, 2 โ .

2 โ
, , AStar.
โ
, , , :
var a_star:AStar= new AStar();
a_star a_star.ERROR:
a_star.addEventListener(a_star.ERROR,onError);
, . onError. , , :
private function onError(e:Event): void {
trace(a_star.lastError);
}
, a_star, lastError. โ . 3 output . , , .

3 โ
:
a_star.setObstacleMap(obstacle_map);
! AStar.ERROR AStar, . , . setObstacleMap - , lastError . , โ , . , , .. , , , , AStar, .
Event.COMPLETE:
a_star.addEventListener(Event.COMPLETE,onComplete);
onComplete , clippingType ( ):
a_star.clippingType=<>
, : a_star.F ( full), a_star.P ( prevent) a_star.N ( none). a_star.N , . ? , . . 4 S (start) , f (finish) .

4 โ
clippingType (. 5)

5. โ clippingType=a_star.N .
5. โ , . clippingType=a_star.P . : , ( , 3D ) , , . , ยซยป , . 6, , โ .

6 โ
clippingType=a_star.P ( ) , . , , .
5. , โ clippingType=a_star.F . .. .
, . , :
AStar.findPath(_startx:int,_starty:int,_targetx:int,_targety:int):void
{0,1} {6, 3}. findPath:
a_star.findPath(0,1,6,3);
, Event.COMPLETE (, ?), a_star . a_star my_path:Array:
private function onComplete(e:Event): void {
my_path=a_star.getPath();
}
, , . { _x: < >, _y: < >}. , 5.:
my_path=[
{_x:0,_y:1},
{_x:1,_y:0},
{_x:1,_y:2},
{_x:1,_y:3},
{_x:2,_y:4},
{_x:3,_y:5},
{_x:3,_y:6}
];
. , .