MOVIE CLIP EVENT HANDLERS   Button in Movie Clip

// ENTERFRAME Movie Clip Event Handler:

onClipEvent (enterFrame) {
    // call the chase function every frame:
    chase();
}

// LOAD Movie Clip Event Handler,
// where we define all of the functions:


onClipEvent (load) {
    // define the initialization function:
    function init () {
        words = new Array();
        words = ["i", "feel", "attracted", "to", "you"];
        indx = 0;
        txt = words[indx];
        // divisor is used in chase();
        divisor = random(12)+3;
        // call the placing function:
        placeRandom();
    }
    // define mouse chasing function:
    function chase () {
        _x += (_parent._xmouse-_x)/divisor;
        _y += (_parent._ymouse-_y)/divisor;
    }
    // define function that sets clip to random location:
    function placeRandom(){
        _x = random(550);
        _y = random(400);
    }
    // define the function to change txt:
    function nextWord () {
        indx++;
        if (indx == words.length) {
            indx = 0;
        }
        txt = words[indx];
    }
    // scaling function; gets passed an argument
    function scale (val) {
        _xscale = val;
        _yscale = val;
    }
    // call the initializing function:
    init();
}

  on (rollOver,press) {
    nextWord();
    scale(150)
}

on (rollOut) {
    nextWord();
    scale(100)
}
Button on Main Stage

on (rollOver) {
    thing0.scale(400);
    thing0.placeRandom();
}


on (releaseOutside, rollOut) {
    thing0.scale(100);
    thing0.placeRandom();
}