flex 图片切换效果
切换部分的代码,我要让切换过程有特效怎么做?switch(evt.idx){case1:if(CurrentIndex<2){Alert.show("Thecurrent...
切换部分的代码,我要让切换过程有特效怎么做?
switch(evt.idx){
case 1 :
if(CurrentIndex<2){
Alert.show("The currentpicture is the firstone!");
}
else{
CurrentIndex = CurrentIndex - 1;
ImageSee.source = "e:/image/" + CurrentIndex + ".jpg";
}
break;
case 2 :
if(CurrentIndex>5){
Alert.show("The currentpicture is the lastone!");
}
else{
CurrentIndex = CurrentIndex + 1;
ImageSee.source = "e:/image/" + CurrentIndex + ".jpg";
}
break;
} 展开
switch(evt.idx){
case 1 :
if(CurrentIndex<2){
Alert.show("The currentpicture is the firstone!");
}
else{
CurrentIndex = CurrentIndex - 1;
ImageSee.source = "e:/image/" + CurrentIndex + ".jpg";
}
break;
case 2 :
if(CurrentIndex>5){
Alert.show("The currentpicture is the lastone!");
}
else{
CurrentIndex = CurrentIndex + 1;
ImageSee.source = "e:/image/" + CurrentIndex + ".jpg";
}
break;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询