Thanks so much for all your help. The attached is 95% there but for some reason dosnt seem to operate consistanly. If the users click 4 times anywhere on the circumference area and those 4 points draw two lines which are more or less 90 degrees apart then it should be correct. But i am getting mixed result and am not sure why?
What do you mean, I don't get it, it works perfectly here???
If the users click 4 times anywhere on the circumference area and those 4 points draw two lines which are more or less 90 degrees apart then it should be correct.
Have you changed your mind? You said in an earlier post that you wanted the 4 parts to be selected in a specific order :S?
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
Sorry mileso. I reed your thread weeks ago, i looked to your fla but i'm not familiarized with scripted vectors, pixeles, bitmaps. Maybe our friend Nig13 can help you? Nig!!! *Bump*
submit_bt.onRelease = function(){ ended = true; if((difference >85)&&(difference <95)) //The angle between the two lines is between 85 degrees and 95 degress and therefore correct and the 4 points are all correctly placed. { cover_bt._visible = true; feedback.htmlText = "<b>Correct.</b>\n\nYou have correctly placed the two abdominal diameter measurements at the abdominal circumference and at right angles to each other."; submit_bt._visible = false; } elseif((difference <85|| difference >95)) //The angle between the two lines is either less than 85 degrees or greater than 95 degress but the 4 points are all correctly placed. { feedback.htmlText = "<b>Incorrect.</b>\n\nRemember that the two measurements should be at right angles to each other."; reveal_bt._visible = true; retry_bt._visible = true; submit_bt._visible = false; } elseif((difference >85)&&(difference <95)) //The angle between the two lines is between 85 degrees and 95 degress and therefore correct but one/all of 4 points are incorrectly placed. { feedback.htmlText = "<b>Incorrect.</b>\n\nEach of the two measurements should touch the circumference of the abdomen."; reveal_bt._visible = true; retry_bt._visible = true; submit_bt._visible = false; } //The angle between the two lines is either less than 85 degrees or greater than 95 degress and one/all of 4 points are incorrectly placed. elseif((difference <85|| difference >95)) { feedback.htmlText = "<b>Incorrect.</b>\n\nRemember that the two measurements should be at right angles to each other and each of the two measurements should touch the circumference of the abdomen."; reveal_bt._visible = true; retry_bt._visible = true; submit_bt._visible = false; }}
I understand the issue. You click one point and another point, and a part of the crosshair is created. Then you click 3rd point but you can't make point 4th because when 3rd point is created, the submit button is visible and don't let you click.
I have no idea any longer as this post has been continued for so long and I've lost track of everything here. I really should learn to add comments to codes, but meh, too lazy. I dunno about the 4 click issue, as it works for me, lolz, and it looks like this guy is absent >.<"
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
I took my time to understand the codes, but I don't find how to make it works. If you click randomly 4 times, you'll be able to make 4 crosshairs, but if you click correctly and form the first part of the main cross, when you want to click 2 more times to make the other part of the cross, you'll only be able to make 1, the 3rd crosshair and not the 4th. I'm using the original posted FLA. I tried overwriting the original FLA with your last script, Nig, but it doesn't create the cross, it only attaches the crosshairs with the lines along.
Try it yourself, click one point, then the 2nd point and create a red or yellow line (part of the cross) then try to click 3rd point and 4th point to cread the other part of the cross (if you made the red one, now try the yellow one) and you'll see you can only make the 3rd crosshair, inmediately shows up the Submit button and you can't click anymore to create the 4th crosshair to creat the last part of the cross. And he is not abcent, he commented yesterday, that's why I commented to and tried to help.