ssjogus
12-05-2002, 07:24 AM
i have gone through tutorials of swaping depths. I understood the command swap depth, but i have some doubts:
on (press) { this.swapDepths ("_level0:window"+_level0:highest);
_level0:highest = substring(_name, 7, 1); startDrag (this);}
on (release) { stopDrag ();}
this is what the tutorial displays. but i have not understood the line -
_level0:highest = substring(_name, 7, 1);
when, why do we use substring, name?
ssjogus.
on (press) { this.swapDepths ("_level0:window"+_level0:highest);
_level0:highest = substring(_name, 7, 1); startDrag (this);}
on (release) { stopDrag ();}
this is what the tutorial displays. but i have not understood the line -
_level0:highest = substring(_name, 7, 1);
when, why do we use substring, name?
ssjogus.