= ' How to make text mouse follow ? In fact, only need a few AS can be completed . the word
i_len the
add the following code in a : aiyi_text = = i_text.length ;/ / calculate the total length of the text
n = 0 ;/ / below as to do with : substr i_text with string interception function , were placed in new mc .
while (n <i_len) {
_root.createemptymovieclip (substr string the intercept function into a single text ,Monster Beats.
with ( _root [
i_t.text = t ,beats by dre;/ / assignment for this text , which is above the value of t ,by dre beats.
}
n + +;
}
startdrag (it0, true) ;/ / drag and drop the first word where mc
_root.onload = function () {
/ / when this mc is transferred inside as only executed once
speed = 3 ;
/ / set speed
} ;
_root.onenterframe = function ( ) {
/ / for every player one on the execution time the inside as
i = 1 ;
/ / set the beginning of the variable
while ( i < = _root . i_len ) {
_root [ ; + i]. _x + = (_root [i ]. _y + = ( _root [ control all box on the x-axis and y-axis direction position . . OpenCourseWare i + + ;
}
} ;
_root.mouse.hide ( ) ;/ / hide mouse ' ; / /Topics articles related: