Hi to all
I have mc with pictures in line. They all have _alpha=50;  If mouse is
RollOver  it should be 70. Only one picture  after clicking can have
alpha 100. I want to delete any mouse events for this picture after
clicking. These events should be restored for this picture after
clicking on another one and alpha  has to be 50 again. How I can get
this?  This is simple example for an idea.
for (var i=1; i<=4;  i++){
        pic= //attachment code
                pic.id=i;
                pic._alpha=50;
                pic.onRelease=function(){
                setAlpha(this.id) // it should be now 100, all others - 50
                
        }
        pic.onRollOver=function(){
                this._alpha=70;
        }
        pic.onRollOut=function(){
                this._alpha=50;
        }
}

function setAlpha(picId){
        for (var i=1; i<=4;  i++){
               pic= this["pic"+i];
               if (picId==i){
                pic._alpha=100;
// how to disable all mouse events for this pic
                } else {
                pic._alpha=50;
//how to return  disabled events
                }
        }
}

Thanks in advance.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to