A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Need help with a Pattern Maker

  1. #1

    Need help with a Pattern Maker

    I'm creating a pattern maker and I need help figuring something out. Let me first explain what I have so far. I have a small square movie clip that will act as a pixel for my pattern maker. This movie clip is duplicated in a loop so that it makes a grid that is 32 X 32. Within the movie clip is a button that tells the movie clip to go to a frame based on what color was selected. I want to make it so that the user can press on one of the pixel movie clips and have it change color. That part is easy and that part works fine. The part I'm having problems with is that I want the user also to be able to drag over other pixel movies and have them change color also. Here's what I have tried:

    I've tried this:

    on (press, dragOver) {
    gotoAndStop (_root.colName);
    }

    and I've also tried to set a variable on the main timeline of:

    _root.butPress = false;

    and have this on the button:

    on (press) {
    butPress = true;
    gotoAndStop (_root.colName);
    }
    on (release) {
    _root.butPress = false;
    }
    on (dragOver) {
    if (_root.butPress == true) {
    gotoAndStop (_root.colName);
    }
    }

    What am I doing wrong? Thanks for the help.

  2. #2
    Any suggestions?

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