This content has been marked as final. Show 5 replies
The hitTest() doesn't work as expected because the registration points of the mc's are:
- for MainArt in the bottomleft corner
- for SignalNav in the topright corner.
doubleclick the mc's on the stage and check it. You need to either reset the registration points or account for the registration point in your hitTest.
Looping over the frame is not the way to go. Just use an interval to test for the collision. The attached script works (but it tests hitting of the bounding boxes).
wow.... it worked, I've been trying to do that for about five days.
I'm not sure what Action Script is closes to as far as language but is there a way to have the removeListener a loop or While so it only stops the reposition while the MCs re touching..
you know I think I just came up with the solution
If i have two stage listeners, one with invisible MCs that don't stop repositioning..
thanks for the help
OK... my plan did not work..
how can I get it to start the reposition when the onresize is stretched backout.
right now if you shrink your browser the MCs hit and the onResize stops but when you stretch the browser back out I would like the MCs to be able to reposition as long as they dont touch..
heres wat I tried
two onResize functions, one set of 'Bump MCs' Alpha 0% that don't stop onResize for the tester and the second visible MCs that stop when the Bump MCs are touching
note the 'if else' statement.. it no worky
thank you so much " LuigiL"
I got everything working perfect... I can't believe it...