A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: A newbie type problem but this is the MX part of the site!

  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    56

    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.

  2. #2
    Senior Member
    Join Date
    Mar 2010
    Posts
    157
    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?

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    56

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center