Hi,
I have been trying to get a grasp of things by setting really small tasks for my self.. so i set up on trying to do something really basic i created a game which will be over and displays a game over message, when a box is dragged into a predefined position as below .....

Now i have tried but have no clue as to how do i find out that as and when the green box over laps the grey box or lies with in it, kindly suggest a any link or tutorial where i can find a solution to such a problem .....
Note - this is what i tried - i noted down the x and y coordinates of the grey box , they were x=118, y=50 in my case , now i tried to code in the time line to add an event listener on enter frame that when the coordinates of green box also become same as that of grey it shows a game over message , but i was not able to access the properties of green box from action page as it has been converted in to an component and i could give it an instance name .....
Regards
Jin
I have been trying to get a grasp of things by setting really small tasks for my self.. so i set up on trying to do something really basic i created a game which will be over and displays a game over message, when a box is dragged into a predefined position as below .....

Now i have tried but have no clue as to how do i find out that as and when the green box over laps the grey box or lies with in it, kindly suggest a any link or tutorial where i can find a solution to such a problem .....
Note - this is what i tried - i noted down the x and y coordinates of the grey box , they were x=118, y=50 in my case , now i tried to code in the time line to add an event listener on enter frame that when the coordinates of green box also become same as that of grey it shows a game over message , but i was not able to access the properties of green box from action page as it has been converted in to an component and i could give it an instance name .....
Regards
Jin
