![]() |
|
||||||||||
|
|||||||
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | Опции просмотра |
|
![]() |
![]() |
|
|
|
|||||
|
Господа, если кто может помочь. У меня траблы с галлереей.
В свф подгружаются картинки превьюхи со скролингом - это получилось, а вот чтобы при нажатии на маленькую картинку грузилась в том же свф-е большая - никак. Если кто может помочь - очень прошу, icq 240347102 |
|
|||||
|
Регистрация: Sep 2002
Адрес: Киев
Сообщений: 140
|
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
_root.image_mc.loadMovie("images/portfolio/01corporative-style-logotypes/slide01.jpg");
};
![]() |
|
|||||
|
Обновленный вариант
|
|
|||||
|
Регистрация: Sep 2002
Адрес: Киев
Сообщений: 140
|
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
thumbnails[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails_fn(i);
trace(thumbnails[i]);
}
thumbnails_big = [];
for (i=0; i<total; i++) {
thumbnails_big[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
trace(thumbnails_big[i]);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images01.xml");
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+3)*k;
target_mc.pictureValue = k;
target_mc._alpha = 50;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
//trace(thumbnails_big[k]);
_root.image_mc.loadMovie(thumbnails_big[k]);
};
target_mc.onRollOver = function() {
this._alpha = 100;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 50;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
|
![]() |
![]() |
Часовой пояс GMT +4, время: 17:25. |
|
|
« Предыдущая тема | Следующая тема » |
|
|