Регистрация: Jul 2002
Адрес: Russia Federation Moscow
Сообщений: 779
|
Scroll...
Люди!
Написал скролл, но шо-то не очен пашет!
Вставте в первый кадр и поиграйтесь!
Возникнут глюки...
Как их исправить и в чём они заключаются?
Скрипт написано поганно: всё наложено друг на друга... короче всякая фигня... просто ещё не исправлял!
_root.createTextField("txt", 99, 40, 20, 180, 220);
_root.txt.textColor = 0xffcc00;
_root.txt.text = "Karen"+newline+"fbf"+newline+"fbdfbn"+newline+"klj'lk,"+newline+"opdeagfj"+newline+"ewg;ewgk;"+newline+"sr;bv"+newline+"ewgewg"+newline+"cxbxc"+newli ne+"eigfwen"+newline+"Kgdssdgs"+newline+"wgweg"+newline+"Karsrgrsgen"+newline+"fbdbdfen"+newline+"Kxvbxben"+newline+"Kal;jk;ljk"+newline+"Karjk.jk.jk. en"+newline+"Karfdsgbfdsben"+newline+"Kafdsbdfbren"+newline+"Kardfbfdben"+newline+"Kardfbdfben"+newline+"Karfdsbdfxben"+newline+"lj;ljren"+newline+"Ka rdsagsdbven"+newline+"Kas/a.f,a/s;ren";
_root.createEmptyMovieClip("buttons", 1);
for (i=1; i<3; i++) {
mc = _root.buttons.createEmptyMovieClip("bu"+i, i);
with (mc) {
beginFill(0xffcc00, 100);
moveTo(0, -10);
lineTo(10, 10);
lineTo(-10, 10);
lineTo(0, -10);
endFill();
_y += i*30;
_x += 20;
}
}
with (_root.buttons) {
k = 56;
x = 100;
bu1.onPress = function() {
this.onEnterFrame = function() {
_root.txt.scroll -= 2;
y = _root.txt.maxscroll;
z = _root.txt.scroll;
_root.buttons.slide._y = z*x/y+k;
};
};
function u() {
this.onEnterFrame = function() {
_root.txt.scroll -= 0;
};
}
bu1.onRelease = u();
bu2.onPress = function() {
this.onEnterFrame = function() {
_root.txt.scroll -= 1;
y = _root.txt.maxscroll;
z = _root.txt.scroll;
_root.buttons.slide._y = z*x/y+k;
};
};
bu2.onRelease = u();
}
with (_root.buttons) {
bu2._y += 150;
bu2._rotation = 180;
createEmptyMovieClip("slide", 5);
with (slide) {
colors = [0x000000, 0xffcc00, 0x000000];
alphas = [0, 100, 0];
ratios = [0, 127.5, 255];
matrix = {a:0, b:-250, c:0, d:250, e:0, f:0, g:200, h:200, i:1};
beginGradientFill("linear", colors, alphas, ratios, matrix);
moveto(100, 100);
lineto(100, 300);
lineto(300, 300);
lineto(300, 100);
lineto(100, 100);
endFill();
_xscale = _yscale=8;
_x = 3.5;
_y = 65;
}
}
_root.buttons.slide.onPress = function() {
this.startDrag(false, 3.5, 65, 3.5, 153);
x = 90;
y = _root.txt.maxscroll;
this.onEnterFrame = function() {
a = x/y;
yy = _root.buttons.slide._y-65;
_root.txt.scroll = Math.round(yy/a);
};
};
_root.buttons.slide.onRelease = function() {
this.stopDrag();
this.onEnterFrame = function() {
_root.txt.scroll += 0;
};
};
|