Código :
function FNSCROLL(){
if(this.scrollText != undefined ){
if(this.scrollText.maxscroll==1){
if(this._visible) this._visible=false;
}
else{
if(!this._visible)this._visible=true;
}
this.slyder.clear();
this.slyder.lineStyle(1,0x000000,100);
this.slyder.moveTo(0,0);
this.slyder.lineTo(0,this.scrollText._height-1);
this.rectwrapper._y=this.scrollText._height-this.rectwrapper._height;
if(this.pressUp){
if(this.scrollText.scroll>0){
this.scrollText.scroll-=1;
this.dragger._y = 10+int( (this.scrollText._height-30)*(this.scrollText.scroll-1) / this.scrollText.maxscroll );
}
}
if(this.pressDown){
if(this.scrollText.scroll<this.scrollText.maxscroll){
this.scrollText.scroll+=1;
this.dragger._y = 10+int( (this.scrollText._height-30)*(this.scrollText.scroll-1) / this.scrollText.maxscroll );
}
}
if(this.dragging){
var loc = this.dragger._y;
var yDragged = loc-10;
var newScroll = this.scrollText.maxscroll*yDragged/(this.scrollText._height-30);
this.scrollText.scroll=1+int(newScroll);
}
}
}en otro frame... un movie clip tiene este codigo
Código :
onClipEvent(load){
this.scrollText=_root.myText4;
this.onEnterFrame=_root.FNSCROLL;
}resulta que tomo los dos frames y los paso a un movie clip.... y deja de funcionar el scroll...
que está pasando?
gracias ayuda por favor
