
Код:
_root.createEmptyMovieClip("my", 1, {_x:0, _y:0});
image = 0;
with (_root.my) {
createEmptyMovieClip("border", 2);
border.lineStyle(0, 0x000000, 100);
border.beginFill(0x000000, 50);
border.moveTo(30, 30);
border.lineTo(600, 30);
border.lineTo(600, 50);
border.lineTo(30, 50);
border.lineTo(30, 30);
border.endFill();
border.onPress = function() {
startDrag(_root.border);
};
border.onRelease = function() {
stopDrag();
};
border.onReleaseOutside = function() {
stopDrag();
};
createTextField("border_text", 3, 40, 30, 104, 20);
border_text.selectable = false;
border_text.html = true;
border_text.htmlText = "<b><font face='Comic Sans MS' color=\"#000000\">Фото галерея</font><b>";
createEmptyMovieClip("text", 4);
text.lineStyle(0, 0x000000, 100);
text.beginFill(0x000000, 50);
text.moveTo(30, 50);
text.lineTo(600, 50);
text.lineTo(600, 493);
text.lineTo(30, 493);
text.lineTo(30, 50);
attachMovie("next", "next", 5);
next._x = 400;
next._y = 50;
next.onRelease = function() {
with (_root.my) {
createEmptyMovieClip("jpg", 11);
jpg._x = 31;
jpg._y = 51;
if (x<79) {
_root.my.image++;
} else if (x == 79) {
_root.my.next._visible = false;
}
}
///images = "http://localhost/site/image"+x+".jpg";
//_root.my.jpg.loadMovie(images);
//var loadObj = _root.my.jpg;
//var initObject = {target:loadObj, loadExit:null};
//attachMovie("loader", "loader", 9, initObject);
//loader._x = 130;
//loader._y = 41.5;
//loader._xscale = 100;
};
attachMovie("back", "back", 6);
back._x = 400;
back._y = 70;
back.onRelease = function() {
//
};
attachMovie("end", "end", 7);
end._x = 400;
end._y = 90;
end.onRelease = function() {
//
};
attachMovie("begin", "begin", 8);
begin._x = 400;
begin._y = 110;
begin.onRelease = function() {
//
};
}
trace(image);
Как мне сделать так чтоб он прибавлялся image ? Ну просто в я уже не знаю как мне её прибавить 