Thank you very much for help!

2008/6/14 Matt Hawley <[EMAIL PROTECTED]>:
> pic.enabled = false is what you use to disable the mouseevents.
>
> There are alot of ways you could do it.  Here is one:
>
> --------------------------------------------------
>
> var totalPics:Number = 4;
> var pics:Array = new Array();
>
> for (var i = 0; i < totalPics;  i++){
>    pics[i] = this.attachMovie("pic", "pic" + i,
> this.getNextHighestDepth());
>    pics[i].id=i;
>    pics[i]._alpha=50;
>    pics[i].onRelease = setAlpha;
>
>    pics[i].onRollOver=function(){
>           this._alpha=70;
>    }
>    pics[i].onRollOut=function(){
>           this._alpha=50;
>    }
> }
>
> function setAlpha(){
>    setPicsDefaultState();
>    this.enabled = false;
>    this._alpha = 100;
> }
>
> function setPicsDefaultState(){
>    for (var i:Number = 0; i < pics.length; i++) {
>        pics[i].enabled = true;
>        pics[i]._alpha = 50;
>    }
> }
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to