xx513xx
18.10.2007, 13:21
Сделал простую галлерею,туда подгружаются картинки с предпросмотром,текст в текстовое поле ну и сам обект при выборе картинки.
у меня по идеи при навидении на предпросмотр отображается текст в отдельном окне,но мне надо чтобы он отображался справо от каждой картинки,я сделал movie clip с текстовым полем,но он отдельно.
Как мне привизать movie clip с текстом к каждой загружаемой картинки???
или какие ещё варианты могут быть????
помогите,нужно срочно.
исходник (http://stream.***********/3779721)
portfolioInfo = new XML();
portfolioInfo.ignoreWhite = true;
timeline = this;
baseurl = _url.substr(0,_url.lastIndexOf("/")+1);
portfolioInfo.onLoad = function(){
portfolioTag = this.firstChild;
trace(count = portfolioTag.childNodes.length);
for (child = 0; child < count; child++){
currentPicture = portfolioTag.childNodes[child];
currentThumb = m.menu_mc.createEmptyMovieClip("thumbnail"+child,child);
currentThumb._x = child * 140;
currentThumb._alpha = 40;
image = currentThumb.createEmptyMovieClip("thumbnail_image",0);
image.loadMovie(baseurl + currentPicture.attributes.THUMB)
currentThumb.NAME = currentPicture.attributes.NAME;
currentThumb.IMAGE = currentPicture.attributes.IMAGE;
currentThumb.onRollOver = currentThumb.onDragOver = function(){
this._alpha = 100;
textm.showName_txt.text = this.NAME;
}
currentThumb.onRollOut = currentThumb.onDragOut = function(){
this._alpha = 40;
showName_txt.text = "";
}
currentThumb.onPress = currentThumb.onDragOver = function(){
//большой обект
_root.image_mc.loadMovie(baseurl + this.IMAGE);
}
}
}
portfolioInfo.load("armand_swf.xml");
textm- тот мувик с текстом
menu_mc- мувик в который прогружаются маленькие картинки (к ним же и надо привязать текст)
THUMB- имя маленьких картинок в xml
NAME- текст в xml который прогрузить надо
как привязать таким образом?-
http://img525.**************/img525/3162/flashhelplw9.jpg
у меня по идеи при навидении на предпросмотр отображается текст в отдельном окне,но мне надо чтобы он отображался справо от каждой картинки,я сделал movie clip с текстовым полем,но он отдельно.
Как мне привизать movie clip с текстом к каждой загружаемой картинки???
или какие ещё варианты могут быть????
помогите,нужно срочно.
исходник (http://stream.***********/3779721)
portfolioInfo = new XML();
portfolioInfo.ignoreWhite = true;
timeline = this;
baseurl = _url.substr(0,_url.lastIndexOf("/")+1);
portfolioInfo.onLoad = function(){
portfolioTag = this.firstChild;
trace(count = portfolioTag.childNodes.length);
for (child = 0; child < count; child++){
currentPicture = portfolioTag.childNodes[child];
currentThumb = m.menu_mc.createEmptyMovieClip("thumbnail"+child,child);
currentThumb._x = child * 140;
currentThumb._alpha = 40;
image = currentThumb.createEmptyMovieClip("thumbnail_image",0);
image.loadMovie(baseurl + currentPicture.attributes.THUMB)
currentThumb.NAME = currentPicture.attributes.NAME;
currentThumb.IMAGE = currentPicture.attributes.IMAGE;
currentThumb.onRollOver = currentThumb.onDragOver = function(){
this._alpha = 100;
textm.showName_txt.text = this.NAME;
}
currentThumb.onRollOut = currentThumb.onDragOut = function(){
this._alpha = 40;
showName_txt.text = "";
}
currentThumb.onPress = currentThumb.onDragOver = function(){
//большой обект
_root.image_mc.loadMovie(baseurl + this.IMAGE);
}
}
}
portfolioInfo.load("armand_swf.xml");
textm- тот мувик с текстом
menu_mc- мувик в который прогружаются маленькие картинки (к ним же и надо привязать текст)
THUMB- имя маленьких картинок в xml
NAME- текст в xml который прогрузить надо
как привязать таким образом?-
http://img525.**************/img525/3162/flashhelplw9.jpg