가끔 이전 .fla 파일을 편집해야합니다. 문제는 내가 최신 버전의 Flash로 업데이트되었으므로 이제는 .swf를 actionscript1과 함께 내보낼 수 없다는 것입니다. 코드는 매우 간단합니다. 현재 청구서가 무엇이든 월 17.99 달러를 지불하는 경우 얼마나 절약 할 수 있는지 보여줍니다. 따라서 슬라이더의 시작 값이 19 (로드 값) 인 경우 월간 비용 절감액 (onthly_savings.text)은 $ 1.01이됩니다. & 6 개월 동안 절약 (six_months.text)은 $ 6.06입니다.간단한 액션 스크립트 1을 액션 스크립트 3으로 변환하는 방법
this.onEnterFrame=function(){
curr_bill.text=mySlider.ratio+19;
ratio.text = (mySlider.ratio+17.99);
if (curr_bill.text=='19'){
six_months.text='$6.06';
monthly_savings.text='$1.01';
}else{
monthly_savings.text = '$'+(curr_bill.text-17.99);
six_months.text = '$'+((6*curr_bill.text)-107.94);
}
}
또한 슬라이더 자체에이 스크립트가 : 슬라이더를 이동 한 경우, 두 값은 슬라이더 비율을 기준으로 계산됩니다
this.ratio=0 ;
dragger.onPress=function(){
this.startDrag(true,0,0,line._width,0);
this.onEnterFrame=function(){
ratio=Math.round(this._x) ;
}
}
dragger.onRelease=dragger.onreleaseOutside=stopDrag;
이 나는 이것을 다시 것입니다 방법 그것을 actionscript 3에서 작동하게하려면?