Search DLab 1.0

Thursday, August 19, 2010

Phidgets


for Chy,

if (evt.Data > 100 && evt.Data<200){
   A_mc.alpha = (evt.Data-100)/100;
} else if (evt.Data >200 && evt.Data<300){
   B_mc.alpha = (evt.Data-200)/100;
} else {
   A_mc.alpha = B_mc.alpha = 0;
}


2 comments: