Replace one movieclip with another on hitTest??
Posted on 2005-03-26
Hello - please can someone help!
I'm using Flash MX and I am producing a very simple game. ( Not quite simple enough though it would seem!)
My problem is this - I have a bottle being released which is meant to fall into a bin. If it misses the hole and hits the side of the bin, or the ground, it should smash. So I want to replace the movie clip 'bottle' with the movie clip 'smash'. How do i achieve this seemingly easy task? I have played around with loadmovie/unloadmovie but nothing really works.
Secondly, if the bottle goes into the hole, I want tthe score to increase by 10. So i set up a hitTest between tthe bottle mc and the hole mc to increment the dynamic text box by ten, using an on clipevent ( enterframe). It increases the score ok, but it won' stop at 10 - it just keeps on going!