Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




MyMovieClip.hitTest(target)?



Hi,
Can "target" be a MC?
According Macromedia's tutorial, "The target usually represents a button or text-entry field". My target is a MC. Is it possible to use the hitTest()?
I want to detect the collision of two objects.

Please help. Thanks!



FlashKit > Flash Help > Flash MX
Posted on: 06-17-2002, 05:57 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Bad Target To Hittest - Help
I did read alot of Hittest threads, and some helped but, still have trouble getting the correct target in my MCs to work. I Have a test movie with two MCs and a hittest - works good by itself (uses shape flag too):

_root.onEnterFrame = function() {

if (player.hitTest(_root.block_mc._x, _root.block_mc._y, true)) {
_root.hitText.text = "Entering Hospital";
trace("HIT");
}

else {

_root.hitText.text = "Go to a building";
trace("NO HIT");
}
}

But then I load this .swf into an empty MC in my template .swf that holds everything (target_mc is the empty MC):

on (release) {
loadMovie("scene_natural/town_hitTest1.swf", target_mc);
}

So I know I need to target this correctly, and have tried serveral ways and they just don't work (note this file is in another directory, "/scene_natural/")

Right now I have something like this (doesn't work):

_root.onEnterFrame = function() {
if (_root.target_mc.player.hitTest(_root.target_mc.bl ock_mc._x, _root.target_mc.block_mc._y, true)) {
_root.target_mc.hitText.text = "Entering Hospital";
trace("HIT");
}

else {

_root.target_mc.hitText.text = "Go to a building";
trace("NO HIT");
}
}

Another odd thing is that I could get hittest to work if left out the shape flag, after I started adding that in, I couldn't get it to work once loaded into the "target_mc"

Any help or ideas - THANKS!

MovieClip.hitTest(target)
I have movieclips named: target0, target1, target2, target3...
and a movieclip named: ball

i would like to test if the ball hits one of the targets.
How can i do this without having to right:


Code:
if(ball.hitTest(target0)){
... //this code is the same for every target
}
if(ball.hitTest(target1)){
...
}
...
I tried:

Code:
amount = 10;
for(i = 0; i < amount; i++){
if(ball.hitTest("target"+i))
setProperty("target"+i, _visible, false);
...
}
the ' "target"+i ' works fine with setProperty but not with hitTest

does anybody know why ?

HitTest Not Working With Embedded Target? Help?
Heya!

I'm trying to make my first game - but having a little trouble with the hitTest.

I can trace a collision by merely putting my target on the stage and dropping my 'weight' on it (Loony Tunes Style!)

But when I embed the target area within a moving object/host then I can't trace a collision.

Why oh why? It's working with one hitTest but not another -


Code:
function squash(){
if (weight_mc.killZone.hitTest(walkDog3_mc.scalpZone)){
trace("kill!");

}
}

[F8] HitTest - Need ShapeFlag 'true' For Caller, But Also For Target?
Ok, I have read (it feels like) every post on hitTests and still can't find what I need.

I am making a basic maze game where the ball follows your mouse (although lagging behind then catching up, not directly on top all the time), and if you hit the maze wall, it fades a little (- 25 alpha each time). When the alpha gets to 0, you die.

I can make the whole thing work, but can only get it to register the ball is hitting the wall when the centre co-ords of the ball are hitting the wall.

The hitTest is called from within the 'walls' movieclip, because I need the shapeflag to be true for 'walls', as the boundary box is the whole stage, so I only want it to work for the significant areas of 'walls'. However, I would love for it to test against the whole of the 'ball' movieclip, not just the centre _x and _y. Is there a way to do this?
It would just make the game play better - it looks rubbish if your ball can overlap the wall and not make you die!

I am a maths teacher, so not afraid of a little trig if it needs it


This is the code so far:
(It is on the 'walls' movieclip)

code: onClipEvent (enterFrame) {
if (this.hitTest(_root.ball._x, _root.ball._y, true)) {
this._alpha -= 25;
}
if (this._alpha<=0) {
_root.gotoAndStop("gameover");
}
}




I would really appreciate any help anyone can offer - if it's impossible, then please tell me so I can stop torturing myself!!!!

Thanks

Mymovieclip._y , Can You Help Please ?
I am using Flash MX, here's my question.
I have one movieclip called "hope" and one botton called " stay "
both on the main page.

this is the action on botton.

on (release) {
i = "1";
b = "hope"+i;

trace(b);
trace(b._y);
trace(hope1._y);

}


can you tell me why my result are

1. trace(b) = hope1
2. trace(b._y) = undefined
3. trace(hope1._y) = 80


No. 1 and 3 are correct, My question is why number 2 is undefined ? why the result is not 80 since b = "hope1". anyone can help me ? where do i have to change to make trace(b._y) = 80 ?

Thank you so much

MyMovieClip.onRelease
hi

i used this loop to declare every movieclip in an array as a button:

for(i=0; i<theArray.length; i++){
_root["myMovieClip" add i].onRelease = function () {
_root.theReleasefunction();
}
}

but the function only appears to work on the last moieclip (i=theArray.length)

what can i do????

please help

MyMovieClip.onEneterframe = Foo(arg);
why can't i send the onEnterframe event handler function params?

this works (calls it repeatedly):

function foo() {
trace ("onEnterFrame called");
}
//
myMovieClip.onEnterFrame = foo;

this doesn't (calls it once):

function foo(arg) {
trace (arg);
}

myMovieClip.onEnterFrame = foo("test");

any thoughts?

MyMovieClip.onData
For what can be used this method?


Code:
myMovieClip.onData = function () {
trace ("onData called");
};
Thanks Jan

If (myMovieClip = Null){ ?
I have been using this code for a while now and simply list all animated movie clips in a function like this...


ActionScript Code:
if (myMovieClip != null){
myMovieClip.stop();

I also make another function to play each movie clip.

The problem I am having now is I THINK when the movie clip isn't present at the beginning of the scene (Where the above code is) I get an "Access of undefined property" error. I dont know why I am getting this because I was hoping that if myMovieClip is null then it would ignore the rest of the if statement and go onto the next, but I could be wrong. Can anyone explain exactly what is going on here.

Cheers

MyMovieClip ._framesloaded
http://www.macromedia.com/support/fl...ionary522.html


Does anyone know a good tutorial to explain this? I'd like to use this over the depracted ifFrameLoaded....


Thanks.

MyMovieClip ._framesloaded
http://www.macromedia.com/support/fl...ionary522.html


Does anyone know a good tutorial to explain this? I'd like to use this over the depracted ifFrameLoaded....


Thanks.

MyMovieClip.onLoad = Function () {
Can someone tell me if this is meant to work in this way
drop_down.dropContent.onLoad = function() {
trace("anything");
}
like in flash 5 you had
onClipEvent (load) {
trace("anything");
}
Am I loosing my mind or this is not working in my MX
I have used the
drop_down.dropContent.onEnterFrame = function() {
trace("anything");
};
and this works.

MyMovieClip.onLoad = NOT WORKING
I have a movie clip on my stage called "displayMC", on the first frame I place the following

Code:
displayMC.onLoad = function(){
this.nextLetter = 0;
trace("Next Letter is " add this.nextLetter);
};


I get NOTHING in the output window and when I try to use the value in an onEnterFrame it is undefined so the code continues to execute well after the desired effect has taken place.

What's strange (at least to me) is that if I change the onLoad to onEnterFrame, the trace executes and shows in the output window.
<font color = "red">EVEN MORE STRANGLY, </font>if I select the movie clip and attach the code in the old way

Code:
onClipEvent(load){
nextLetter = 0;
trace("Next Letter is " add this.nextLetter);
}


That works.

Can anyone see what I am doing wrong?

MyMovieClip.gotoAndPlay(frame)
i don't understand...on the guide i'ts written:

myMovieClip.gotoAndPlay(frame)


but it doesn't work...

i tried even

_root.myMovieClip.gotoAndPlay(fotogramma)

nothing....

why????






thanx

MyMovieClip.enable=false ?
I'm trying to use this code on a button to disable an MC.
I created an MC, gave it a name for action script linkage, and placed the code myMoviClip.enable=false on my button.

Nothing!!! it doesn't work! What am I missing?

Thanks

Coccinelle

Loop On A MyMovieClip.loadVariables(url)
Hi

I am trying to make a flash program that manages a list of online people in real time (in a List Flash component)

To load the list, I use an empty movieclip that gets the data (named "datavault"). When the datavault.loadVariables(url) is finished, a procedure datavault.onData = function () { ... } is called and that one manages to add the people to the list. After that, I want that function to launch a loadVariables again, to have a permanent loop on that loading. I might add some delay on that later on, but that's not the matter.

With the TRACE, I can see the only onData that is loaded is the first one, and after that the script stops.

Hereunder is the script I used :


Code:
url_get_userlist = "http://"+_root.phpserver+"/index.php?action=getuserlist";
_root.datavault.loadVariables(url_get_userlist);

_root.datavault.onData = function()
{
global url_get_userlist;
trace(_root.datavault.sv_userlist);

/* the user list is shaped that way : user1<!>user2<!>user3<!> */
array_userlist = _root.datavault.sv_userlist.split('<!>');

for(i = 0; i <= array_userlist.length; i++)
{
if(array_userlist[i].length)
{
_root.chat_userlist.addItem(array_userlist[i]);
}
}

_root.datavault.loadVariables(url_get_userlist);
}

MyMovieClip.onLoad Not Being Called
Code:
bonusRound.onLoad = function()
{
trace("onLoad called");
};
this is in my action layer, yet isn't being called. my bonusRound.onEnterFrame calls just fine.....any suggestions?

Mymovieclip.onMouseUp = Function()
Hi Guys,
I have just developed a simple xml photo gallery. Below is the code that I have used to generate the gallery:


Code:
var gallery = createEmptyMovieClip("galleryImage",0);
for (i=0; i<total; i++) {
cur_item = gallery.attachMovie("mainImage","spec"+i, i);
cur_item.loadMovie(thumb[i], "mainImage");
cur_item.onMouseUp = function() {
getURL(javascript:openWindow("products/"+id+"/"+image[i]));
};
}
I am having difficulties to make each movie clip generated into a button that will call the javascript button:


Code:
cur_item.onMouseUp = function() {
getURL(javascript:openWindow("products/"+id+"/"+image[i]));
};
What i want to do is to allow the user to click on the movie clip and it will call javascript and open the image in a html window. For some reason I can't get it to do anything. Am i using the correct code to do this?

Please advise

Much appreciated

Daniel

Question About MyMovieClip.onLoad
myMovieClip.onLoad = function () {
trace ("onLoad called");
};

it not works

thx for any helps

MyMovieClip.onRelease Vs. On(release)
What are some advantages to using one over the other?

Mymovieclip._visible = False // Won't Work
could somebody tell me wy this action suddenly fail :


Code:
mymovieclip._visible = false


Instead I used setproperty(...,...,..)
and this works

I'm getting really mad !!!
News

HitTest With "" Around The Target
Does anyone know how to make a hitTest with "" around the target? I need it because then you can add a variable to that value. Like this:

for(playernumber=1; playernumber < totalplayers; playernumber ++){
this.HitTest("player" + playernumber)
}

MyMovieClip.loadMovie("image.jpg")
this can be possible in Flash MX?
in the reference looks like can be possible but i try and i can't..
the image doesn't appears

myMovieClip.loadMovie("image.jpg")

i'm loading the path of the image from a xml
if i view it in flash player 8 the image appears... but i need it for player 6

please help...

MyMovieClip.gotoAndPlay("frame")
thats the syntax i need....when i click a button on the main timeline, i want it to goto a certain frame in a certain movie clip and play. the exact syntax is

on (release) {
mainstage.gotoAndPlay("bio");
}

contains no errors....dunno what to do.

help?
please?
PLEASE?
hah....

thanx

Newbie Movement Question - Move Number Of Pixels NOT To Target Or Even PRECISE TARGET
Like a lot of people im using the code below to move a movie clip my question is this - how do i move the clip exactly a set number of pixels from its current position (lets say 20 pixels) rather than setting a target?

(what im using now)

onClipEvent (enterFrame) {
if (_root.go==1 && root._x<300) {
_x = _x+2;
}
}

ive tried lots of things but there must be a simply answer - someone please help.. thanks.

My second question is how do i move something to a specific x target ie not use <300 or such like - ive tried != and stuff like that but to no avail..

1st question more important right now though - thanks!

Apply Glow Filter On Target MC While Dragging An Object And Rolling Over The Target
I can get my filter to apply to a movie clip if i simply rollover or roll out of it. When the mouse rolls out, the filter is set to undefined. The problem I am having is that I want the object that is in effect the hit area to glow (have a filter applied) when the draggable object is being dragged over it.

This would make is easier for the user to visually identify that where they are currently hovering over, whilst dragging, is the area that they should drop the object.

Part of my code looks like this


Code:
this.onRollOver = function () {
if(_global.isDragging == 1){
this.filters = glowFilterArray;
}
}



this.onRollOut = function () {
_global.isDragging = 0;
this.filters = undefined;
}
_global.isDragging is set to 1 at the onPress stage, when startDrag occurs.
_global.isDraggin is set to 0 onRelease of the draggable object.

Are there any ideas for a solution?

Action On Button, Tell Target, Error=target Not Found
Hello, beings of helpfulness!

I am working at a non-profit and trying to make a website from a Flash template with minimal, but some Flash experience. The template has multiple timelines (main page, content pages, and buttons). This part I am still learning. On the home page, I have an image (mc) that loads, with an instance name of "girls." Menu buttons take the viewer to corresponding content pages, which is when I want the image on the main page to dissapear to make room for the content. When the viewer selects the home page again, I want the image to appear again. At first I put in the following action (except for the home page), alpha=0. It worked! And now it doesn't! I did play with the button timelines some. I tried taking the actionscript out and putting it in again, to no avail.

The action in my button is


on (release) {
tellTarget ("_root.girls") {
_alpha=0;
gotoAndPlay(11);
}
}

And the error I now get is: Target not found: Target="_root.girls" Base="_level0.instance58.instance543"

Any ideas? I'm quite stuck. Thanks so much for any help, or suggestions to do this another way.

I've attached the swf, but the compressed fla was too big. I can email it to anyone willing to fix what is probably very simple, except to the newbie with little but increasing experience!

I'm using Flash MX.

How To Take Time From HitTest True To HitTest False?
hi
i have 2 MCs one is going through the other
and i want to take the time from the beginning
to the end.my code is this:
onClipEvent(load) {
this._visible = 0;
}
onClipEvent(enterFrame) {

first = new Date;
second = new Date;
indicator = 0;
if(!indicator && this.hitTest(_root.rocket)) {
indicator = 1;
sec = erst.getSeconds;
mil = erst.getMilliseconds;
begining = sec add ":" add mil;
}

if(indicator && !this.hitTest(_root.rocket)) {
indicator = 0;
seco = zweit.getSeconds;
mill = zweit.getMilliseconds;
end = seco add ":" add mill;
xposi = getProperty(_root.rocket, _x);
yposi = getProperty(_root.rocket, _y);
position = xposi add yposi;
}
}

further i want to show begining, end and position in 3 different textfields, but nothing works at all !!!
can it be, that it doesn`t work, because "this" is a symbol
in a symbol?!?

thx
bo

LoadMovie In A Target Without Inherit Of Target Properties?
hi,

I load a SWF-FILE in a target MovieClip with loadMovie(). After that I want to read the _width and _height of loaded MovieClip (from the SWF-FILE), but I only get the properties of the target MovieClip.

loadMovie ("test.swf", "dummySwf");
trace("height:"+dummySwf._height+"width:"+dummySwf ._width);
//put out the properties from target, not from new clip :-((

any idea?

thanks

Target A Specific Frame In And Instance Using Tell Target
is it possible to target a specific frame in and instance using tell target? I can get the effect i want by using goto frame, however i want to use this mc or .swf in a movie, and i don't want goto frame to affect the whole movie, just the mc.

Target JS Button To Target Frame Swf At Different Html...how?
this is my 2nd post regarding this problem, i'm seeking for many input nad perhaps the example soource file/code...

kind like a loading specific frame of swf from a html hiperlink?!? can it be done?

- say we have a 3 frame swf, located at index1.html
- then i have a button(gif/jpeg htmlpage not flash), located at index2.html

- what i wanna do is when i click the button(JS) on index2.html, it will open the index1.html then start play the swf at frame 2 NOT 1(beginning)

how can we do that?

Hittest=false, Trying To Do The Opposite Of Hittest.
This question may have such an easy solution it might be worth for the newbies section...
I need an mc to do an action (go to a certain x point) whenever the mouse ISN'T over a particular box. So basically I would need to revert the typical
if (hitTest( _root._xmouse, _root._ymouse));
Anyone knows how to do this?
Thank you soooo much!

HitTest...creating The Opposite Of A HitTest
When I roll over a mc an enter frame triggers a function that is designed to evaluate when the mouse moves off the mc...how do you test for the opposite of a hitTest? I though in an "!", but didn't work.


PHP Code:



var buttonTarget:String = "targetMarkets_mc";

root[buttonTarget].addEventListener(MouseEvent.MOUSE_OVER, overHandler);

function overHandler (event:MouseEvent){
            
    root[buttonTarget].gotoAndStop ("active");
    
    root[buttonTarget].addEventListener(MouseEvent.MOUSE_MOVE, mouseEval);
};

function mouseEval (event:MouseEvent) {
    
    if (!root[buttonTarget].hitTestPoint (mouseX, mouseY, true)) {
        root[buttonTarget].gotoAndStop ("inactive");
        root[targetMC].removeEventListener (MouseEvent.MOUSE_MOVE, mouseEval);
    }
};




Also, how do you remove the event listener? Is there a need?

Load Movie Into Target And Tell Target
when i load a movie into target i can effect thie movie with setproperty but not with tell target, is this "normal"?

Target Not Found: Target="_root.info1"
Okay my problem arises when I load an external swf to a target on my main movie. now the the external swf works great on its own, it has a few MC's which are called via a simple button script - on release -> tell target -> go to and play .... the target is "_root.info1" . However When the file is loaded into my main movie I get the error message ' Target not found: Target="_root.info1" ' obviously it is trying to find the target in the main movie and not in the external swf. Well I just dont know how to fix it, any ideas ?

Thanks

Easy Q: Target Not Found: Target="downtrigger"
I have an MC thats called 'slider' that will slide around the main stage. When different buttons are pressed it will slide in to place and each place will have a dynamic text field that will scroll the appropriate text. When I test the movie the text is viewable but when I click the scroll arrows I get the following error:

Target not found: Target="downtrigger" Base="_level0.slider"

What I would like to know is where I place the

'_level0.slider' on my tell target script, which is as follows:

on (press) {
tellTarget ("downtrigger") {
gotoAndPlay(2);
}
}
on (release, releaseOutside) {
tellTarget ("downtrigger") {
gotoAndStop(1);
}
}

If anyone is interested in looking at the .fla let me know and I can email it. Much appreciated, by the way I have around 2 weeks to get this project finished!

If Target Is Between 1 And X Begion Tell Target... HELP
I have some actionscript in a button that works successfully when a MC has reached a certain frame but doesn't take into account if the MC is already playing, so I want it to say, in actionscript language:

If (/overview:_currentframe is between 1 and 50)
Begin Tell Target.... etc.

How is this done?

[hitTest/Mask] Can A Mask Hide A HitTest Area?
Hi, the subject pretty much says it all. I have the following code:


ActionScript Code:
volume.onEnterFrame = function() {
    if (volume.hitTest(_xmouse, _ymouse, true)) {
        _root.nextFrame();
    } else {
        _root.prevFrame();
    }
};


...and here is the link. Move your mouse under the bar and move it up slowly under the the speaker next to the number. See what happens? Keep in mind that the look is still being perfected, I was just wanting to know if there were a way I could fix the problem or do I just have to start thinking of a new look for it? Thanks in advance.

(PS: let me know what you think of the look and layout please)

Target Not Found: Target="undefined" Base="_level0.hero"
For some reason whenever my hero mc jumps i get this
Target not found: Target="undefined" Base="_level0.hero"

the code for the jump is:
code:

onClipEvent (load) {
vel_y = 0;
jumping = true;
speed = 5;
}

onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && !jumping) {
vel_y = 35;
jumping = true;
}
}
onClipEvent (enterFrame) {
fall = true;
if (this.hitTest(_root.floor)) {
fall = false;
vel_y = 0;
grav = 0;
}
if (fall) {
grav += vel;
vel += 1;
if (grav>=10) {
grav = 10;
}
this._y += grav;
}
}
onClipEvent (enterFrame) {
if (jumping == true)
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (fall == true && vel_y<=5)
this.gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (fall == false)
this.gotoAndStop(1);
}


Any idea how i can clean this up or help w/ the target identifier?

thnx in advance

How Do I Rid Of This Error: Target Not Found: Target="OverworldTheme" Base="_level0"
I was making a main menu and I had looping music on it. I tried to make the music stop after I click the play button so I used the following code:


PHP Code:



on (release) {
    tellTarget ("OverworldTheme") {
        stopAllSounds();
    }
}
on (release) {
    gotoAndPlay(2);





And while I play the video and press the button, the following error comes up:

Target not found: Target="OverworldTheme" Base="_level0"

Any advice on how I could fix this?

What Does Target Not Found: Target="_level0.paddle" Base="?" Mean?
Ok I got this line when playing with this game i was creating:

Target not found: Target="_level0.paddle" Base="?"

But I do have a MC named paddle, and it does work but after a while it has this error. Here is the game:

http://www.angelfire.com/sd/LowRyder/pongdeath.html

Play the game and try to collect the red things. Notice how the paddle will run a crumble animation. After a while, it will stop doing this. When it stops, it shows that error message in the debug window. Nowhere in my code does it try to change the paddle's name. The red things are being duplicated off of another MC. Any ideas?
Thanks.

Target Not Found: Target="WIN4" Base="_level0"
Copyed a movie cliped, renamed it as WIN 4, think I got everything right but i get this error when I click on the button: Target not found: Target="WIN4" Base="_level0" ,but the MC loads up and closes just doesn't show the text from the text file. Any help would be great cuz I'm a newbie.

Can't upload file, board says file to big. Message me on AIM, ICQ, or MSN if you cna help me.

Aim: DjSpinStylez
Msn: DjSpinStylez@aol.com
Icq: 82126077

Thanks

[F8] Target Not Found: Target="undefined" Base="_level0"
I am getting this error when running the movie I'm working on. I have looked around, but cannot find a solution or direct cause on the web anywhere. Can anyone here help? Attached is the .fla.

I had to take the content out of scene 2 due to size restrictions, but the error is still the same.

Target Not Found: Target="undefined" Base="_level0"
Can anyone tell me how to get rid of the the following error message that appears every time i publish my movie.

Target not found: Target="undefined" Base="_level0"

Target Not Found: Target="_root.name" Base="?"
my navigation is stored in a mc which uses the tell target. why canīt my mc find the root movie?

thanks!

Target Not Found: Target="nomes.popupwindow" Base="_level0.nomes"
hi , how do i tell the button to open a movie clip.i get this !
Target not found: Target="nomes.popupwindow" Base="_level0.nomes"
i have a movie clip(nomes) that loads on frame 10 say,
and in the movie clip(nomes) i have the button that i want to press and open a new MC ?? i tried with " tell target and
on (release) {
_root.instanceNameOfClip.gotoAndPlay(2); but nothings working

Target Not Found: Target=" " Base=" "
I have a loadmovie command in one of the frames
menu_mc.loadMovie("menu.swf");

The movie i'm loading is a drop down menu.
The movie menu.swf loads in but when i go to click on the button for it to dropdown the output panel pops up saying.

Target not found: Target="/Meny1" Base="_level0.menu_mc.Meny1"

I've attached the file, if it helps.
PS I'm using flash MX 2004 pro

Thank you

Target Not Found: Target=" " Base=" "
I have a loadmovie command in one of the frames
menu_mc.loadMovie("menu.swf");

The movie i'm loading is a drop down menu.
The movie menu.swf loads in but when i go to click on the button for it to dropdown the output panel pops up saying.

Target not found: Target="/Meny1" Base="_level0.menu_mc.Meny1"

I've attached the file, if it helps.
PS I'm using flash MX 2004 pro

Thank you

HitTest Again
hi, I'm trying to create a game that is similar to moon lander. How do I write the hitTest? I know i will have to use hitTest with the x and y coordinates but there are so many coordinates for the irregular mountain, how should I write it?? I mean it is riddiculous to write down all the coordinates manually right. So anyone knows how to write that part?

Copyright Đ 2005-08 www.BigResource.com, All rights reserved