
March 28th, 2003, 07:28 PM
|
|
Contributing User
|
|
Join Date: Mar 2001
Posts: 43
Time spent in forums: 5 h 35 m 15 sec
Reputation Power: 8
|
|
|
hitTest
** formerly... Is this Possible? (Flash/PHP/MySQL ) **
Bret, I'm sure you'll find this.
I have looked up hitTest and am having problems detecting a "Hit".
I have created 2 MovieClips (circles)... black0 & gold0 and used duplicateMovieClip so there are now three of each visible.
PHP Code:
for(i=1;i<3;i++){
black0.duplicateMovieClip("black"+i,i);
this["black"+i]._x = 50 + (i * 100);
this["black"+i]._y = 50;
gold0.duplicateMovieClip("gold"+i,i+2);
this["gold"+i]._x = 50 + (i * 100);
this["gold"+i]._y = 150;
}
I created a trace in the on (release) for each object to show which object I am moving. This is where I also attempted to detect a "hit" between objects with no luck.
Any help would be appreciated.
- Andrew
|