Coding practice error?

So, normally I cherish the feedback I get from these forums, and I wouldn’t post a seemingly easy question, which usually has to do with punctuation or sequencing (something I can probably find out on my own) however, I have searched and coded everything ’ correctly’ (in my own mind), and I cant seem to find the problem.

The first code quote works (it is from a seperate instance elsewhere in the main movie), while the second one does not. The difference in the second one is that the lock and lockMovie are within one other movieclip, and I don’t see why they would no longer work. Could the alpha=0 part of the png image, if it is perhaps covering the lock mc, prevent me from rolling over it, even though it ‘looks’ transparent? I dont think this is the case though - I checked and the png is not overlapping.

All of the instances at play are mc’s, and not graphics. What else am I missing?

Thanks for the help!

Nick

First quote box :


this.scene.bubble.lock.onRollOver = function() {
       this.scene.bubble.lock._xscale = 140;
        this.scene.bubble.lock._yscale = 140;
        this.scene.bubble.lock.gotoAndPlay(1);
        this.scene.bubble.lockMovie.gotoAndPlay(2);
    };
    this.scene.bubble.lock.onRollOut = function() {
        this.scene.bubble.lock._xscale = 100;
        this.scene.bubble.lock._yscale = 100;
        this.scene.bubble.lock.gotoAndPlay(1);
        this.scene.bubble.lockMovie.gotoAndPlay(139);
    };

Second quote box :


this.scene.picture.bubble.lock.onRollOver = function() {
        this.scene.picture.bubble.lock._xscale = 140;
        this.scene.picture.bubble.lock._yscale = 140;
        this.scene.picture.bubble.lock.gotoAndPlay(1);
        this.scene.picture.bubble.lock.gotoAndPlay(2);
    };
    this.scene.picture.bubble.lock.onRollOut = function() {
        this.scene.picture.bubble.lock._xscale = 100;
        this.scene.picture.bubble.lock._yscale = 100;
        this.scene.picture.bubble.lock.gotoAndPlay(1);
        this.scene.picture.bubble.lock.gotoAndPlay(139);
    };