|
-
A newbie type problem but this is the MX part of the site!
MX2004
Got two big squares on the stage - left and right.
Underneath 8 much smaller boxes can be dragged around the stage.
I want to advance to the next frame when small box 1 2 and 3 are somwhere inside left big box AND small box 4 5 6 7 and 8 are somewhere inside the area of right big box.
In other words when 1 2 and 3 are in the left big box and 4 5 6 7 and 8 are in right big box the movie goes to next frame.
Thanks for any suggestions.
Huw
Last edited by Huwrich; 05-19-2010 at 03:34 AM.
-
if(Lbox_mc.hitTest(b1_mc) && Lbox_mc.hitTest(b2_mc) && Lbox_mc.hitTest(b3_mc)&& Rbox.hitTest(b4_mc) *etc.*){
nextFrame();
}
is that what u're looking for?
-
Sorted!
Yep that works fine! Thanks very much - never seen the "&&" code before - looks like it will be handy.
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|