File sent…
Here’s what I did by the way :
4 layers :
background : a movie clip containing a box that matches exactly the dimensions of my mask
dragger : a movie clip that’s draggable to change the speed. Actually a button inside a clip, to make it clickable.
masked : a movie clip containing text broken apart. I’m not sure that the breaking is necessary but as a precaution…
Mask : well, hum, hard to tell…
So the background and the mask are at the exact same location.
The script : Easy one :
Masked :
onClipEvent (load) {
original = -this._height/2 -5 ; //I set the original position to just out of the screen
this._y = original ; // I put the clip there
}
onClipEvent (enterFrame) {
if (this._y >this._height+_root.pos+_root.height/2) this._y = original ;
//if my text has gone out of the box completely (_root.pos is the position of the mask and _root.height its
//height) I put the clip back up
else this._y += _root.diff ;
//I move the movie clip, making it go down by _root.diff (which is controlled by the dragger of course)
}
Background :
onClipEvent (load) {
_root.pos = this._y;
_root.height = this._height;
} //as I said… initializing the size and position of the mask
dragger :
the button
on (press) {
_root.pressing = 1 ;
}
on (release) {
_root.pressing = 0 ;
}
//just flags
the clip
onClipEvent (load) {
_root.pressing = 0 ; //originally not pressing
position = this._y ; //set the 0 position to the original position (at the top, in my clip)
}
onClipEvent (enterFrame) {
if (_root.pressing) { //if I’m pressing the button
        if (_root._ymouse > _root.pos-_root.height/2+this._height/2) {
                if (_root._ymouse < _root.pos+_root.height/2-this._height/2)
//Wow. Kinda ugly, hue ? It checks if the mouse is located between the bounds of your draggable area
this._y = _root._ymouse ; //the dragger follows the mouse
                else _root.pressing = 0 ;
//trying to solve the problem that if you go astray clicking, it works… strangely
        }
}
_root.diff = 0.05*(this._y - position) + 1 ;
// set the speed to 5% of the offset +1, an original speed, which you can change.
}
I put the frame rate at 20fps, and there you go !!
pom 0] , who knows that without the fla in front of your eyes, I doesn’t look too good.