[mx2004] nested clip trouble

I have all the actionscript on the main timeline, and on the stage I have a clip called wind1 with instance name full_wind, inside it is a clip for other clips which make up the blades on the windmill fan. On one of the blade movieclips is called blade_bio, and has an instance name of wm1, and inside it is an mc called bio_text with instance name bt_1.
the mc bio_text has an animation in it that I want to call from the main timeline, which I’m having problems doing- I’ve just got myself all confused. Anyway I have it working but not how I’d like.
When I roll over any part of the movieclip wind1, it makes the animation( just a glowing text effect) on the fanblade start, when I only want it to play when it’s rolled over the bio_text clip or the blade_bio clip thats inside wind1
Here’s the swf
http://img41.imageshack.us/my.php?image=windmill2to7.swf&tc=img41/9800/p42000921zg.jpg
Here is the code I have, and it’s all on frame 1 of the main timeline



MovieClip.prototype.rotation = function() {
    this.onEnterFrame = function() {
        this._rotation += 4;
   
    };
    this.onRollOver = function() {
        delete this.onEnterFrame;
                full_wind.wm1.bio_t.gotoAndPlay("_over");
        
                
            };
    this.onRollOut = function() {
        full_wind.wm1.bio_t.gotoAndPlay("_out");
        this.onEnterFrame = function() {
            this._rotation += 4;
        };
    };
};
full_wind.rotation();

Thanks for any help:cyclops:

i’m not real familiar with prototypes and scoping, but i think you’ll need something like this:


MovieClip.prototype.rotation = function() {
    this.onEnterFrame = function() {
        this._rotation += 4;
   
    };
    this.wm1.onRollOver = function() {
        delete this.onEnterFrame;
                full_wind.wm1.bio_t.gotoAndPlay("_over");
       
               
            };
    this.wm1.onRollOut = function() {
        full_wind.wm1.bio_t.gotoAndPlay("_out");
        this.onEnterFrame = function() {
            this._rotation += 4;
        };
    };
};
full_wind.rotation();

Yay- I’ll try it, thank you again!

It sent one of the baldes flying off into its own rotation. I think I may have to set up the movieclip differently.