Skip to main content
Participant
November 3, 2007
Question

Match the Columns

  • November 3, 2007
  • 2 replies
  • 346 views
Hello

I was trying to make a match the columns game, and someone told me to do it like this:

You'd set up two columns of MCs, list each of them in two matching arrays. apply startDrag and stopDrag methods to each, then when stopDrag is activated run a check on the _droptarget to detemine if it's in the correct location, if so pull info on the related (maybe stored in another matching array, or use Objects and pull from the property) item to a screen MC and send it to a dynamic textField. then remove the two related objects from the Stage.

I dont really understand this.

Can someone explain this to me or make a template for me in Flash 8 and I can just personalize it to my own likes?

I know a bit about Flash, but not a lot.

I would really appreciate if someone could follow those directions and then give it to me to fill in with my own questions.

Thanks,
azra
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
November 3, 2007
p.s. if you want to hire me to build a template, go to my website and send an email. but this is not a difficult project and you can get free help by posting your code and issues to this forum.
kglad
Community Expert
Community Expert
November 3, 2007
each mc needs to know its array index. (you can define a function to return this if it's not derivable using your mc _name properties.) you then compare the index of the dropped mc with the index of its _dropTarget. if they are the same, you have a match. otherwise, you don't.
AFJ786Author
Participant
November 3, 2007
quote:

Originally posted by: kglad
each mc needs to know its array index. (you can define a function to return this if it's not derivable using your mc _name properties.) you then compare the index of the dropped mc with the index of its _dropTarget. if they are the same, you have a match. otherwise, you don't.


sorry, but i have no idea what you mean by that. can you give me a step by step direction to do this?