Bitte um Hilfe, Problem mit Flash Tamplate!

startrader76

Grünschnabel
Hallo an Alle!

Sitze jetzt schon Stunden vor dem Quelltext in Flash und weiß nicht mehr weiter! Habe ein fertiges Tamplate welches ich bearbeiten möchte, hierzu der Link:

http://www.cinismus.com/site_flash

Wenn ihr auf PORTFOLIO klckt, kommen auf der rechten Seite kleine Vorschaubilder und links dann das große Foto mit Vergrößerungsmöglichkeit!

Ich hätte gerne auf der rechten Seite (kleine Bilder) alles do wie es ist, auf der linken Seite möchte ich jedoch eine .swf datei laden mit mehrern bildern des kleinen vorschbildes! Wie und wo kann ich das in dem Text ändern, dass er mir eine swf und kein großes bild dort hin lädt?

Es gibt einen Order am Server mit "small" für die kleinen Fotos
und mit "big" für die großen Fotos.

Vielleicht kann ich ja, statt 1.jpg einfach 1.swf laden

Wäre über jeden Tipp dankbar!!

LG
Christian

Ich denke, dass hier ist der dazugehörige Text:





var coll_position = 0;
var row_position = 0;

i=0;
while (_root.getCurrentGalleryName(i)) {
k=0;
imageToRemove=_root.getGalleryImage(k, i);
while (imageToRemove['name']) {
if (preview["image"+k]) {
preview["image"+k].removeMovieClip();
}
k++;
imageToRemove=_root.getGalleryImage(k, i);
}
i++;
}

categoryName=_root.getCurrentGalleryName(_root.gallery_category);
categoryFolderID = _root.getCurrentGalleryFolder(_root.gallery_category);
imageCount=_root.getCountCategoryImages(_root.gallery_category);

for (i=img_start; i<img_start+colls*rows; i++) {
if (i!=0) {
prevIm=i-1;
categoryPrev=_root.getGalleryImage(prevIm, _root.gallery_category);
}
if (i!=imageCount) {
nextIm=i+1;
categoryNext=_root.getGalleryImage(nextIm, _root.gallery_category);
}

categoryImage=_root.getGalleryImage(i, _root.gallery_category);
if (categoryImage['name']) {
this["image"+i].removeMovieClip();
duplicateMovieClip(preview.clip, ["image"+i], i);
preview["clip"]._visible = 0;
preview["image"+i]._x = Math.round((maxWidth+h_space)*coll_position);


preview["image"+i]._y = Math.round((maxHeight+v_space)*row_position);

preview["image"+i].small_image_mask._width=maxWidth;
preview["image"+i].small_image_mask._height=maxHeight;
preview["image"+i].big_cont_bg._width=maxWidth;
preview["image"+i].big_cont_bg._height=maxHeight;

preview["image"+i].small_image_mask._x=small_picture_x_correction;
preview["image"+i].small_image_mask._y=small_picture_y_correction;
preview["image"+i].small_image_mask._width=preview["image"+i].small_image_mask._width+small_picture_pic_width_correction;
preview["image"+i].small_image_mask._height=preview["image"+i].small_image_mask._height+small_picture_pic_height_correction;
preview["image"+i].maxWidth=preview["image"+i].small_image_mask._width;
preview["image"+i].maxHeight=preview["image"+i].small_image_mask._height;

if (template_help_preview!="true") {
if (cacheKiller=="true") {
var unCash= new Date().getTime();
preview["image"+i].small_pic_to_load =categoryFolderID+"/small/"+categoryImage['name']+"?cashKiller="+unCash;
preview["image"+i].big_pic_to_load=categoryFolderID+"/big/"+categoryImage['name']+"?cashKiller="+unCash;
}
else {
preview["image"+i].small_pic_to_load =categoryFolderID+"/small/"+categoryImage['name'];
preview["image"+i].big_pic_to_load=categoryFolderID+"/big/"+categoryImage['name'];
}
}
if (template_help_preview=="true") {


tempCatName = categoryName.split(" ");
newCategoryName=tempCatName.join("_");


preview["image"+i].small_pic_to_load =_root.url+"_"+newCategoryName+"_small_"+categoryImage['name'];
preview["image"+i].big_pic_to_load=_root.url+"_"+newCategoryName+"_big_"+categoryImage['name'];
}

if (categoryImage['comment']) {
preview["image"+i].picture_comment = categoryImage['comment'];
}
preview["image"+i].category = _root["cat_"+_root.gallery_category];
preview["image"+i].gotoAndPlay(2);
preview["image"+i].p1.small_picture_bg_width_correction = small_picture_bg_width_correction;
preview["image"+i].p1.small_picture_bg_height_correction = small_picture_bg_height_correction;
preview["image"+i].p1.small_picture_pic_width_correction = small_picture_pic_width_correction;
preview["image"+i].p1.small_picture_pic_height_correction = small_picture_pic_height_correction;

coll_position++;
if (coll_position == colls) {
row_position++;
coll_position = 0;
}
if (row_position == rows) {
row_position = 0;
}
}
}

//categories buttons




but = 0;
while (cats_buttons.for_text["category_but"+but]) {
cats_buttons.for_text["category_but"+but].removeMovieClip();

but++;
}

cats_buttons.gotoAndPlay(1);
but_height = parseInt(cats_buttons.for_text.category_but._height);
but_width = parseInt(cats_buttons.for_text.category_but._width);
but = 0;









while (_root.getCurrentGalleryName(but)) {
cats_buttons.for_text.category_but._visible = 0;
duplicateMovieClip(cats_buttons.for_text.category_but, ["category_but"+but], but);


if (menu_position == "vertical") {
cats_buttons.for_text["category_but"+but]._y =(but_height+menu_offset)*but;
}
if (menu_position == "horizontal") {
cats_buttons.for_text["category_but"+but]._x =(but_width+menu_offset)*but;
}
cats_buttons.for_text["category_but"+but].category = but;
cats_buttons.for_text["category_but"+but].button_text_animation.cats.text = unescape(_root.getCurrentGalleryName(but));
cats_buttons.for_text["category_but"+but].button_text_animation2.cats.text = unescape(_root.getCurrentGalleryName(but));
but++;
var draw_menu=true;
}



cats_buttons.scroll_bg._alpha=0;


if (menu_position == "vertical") {
cats_buttons.drag._y=0;
cats_buttons.drag._x=(but_width-cats_buttons.drag._width)/2;
cats_buttons.down._x= (but_width-cats_buttons.down._width)/2;
cats_buttons.scroll_bg._height=menuWidthOrHeight-cats_buttons.drag._height-cats_buttons.down._height;
cats_buttons.scroll_bg._x=cats_buttons.for_text.category_but._width+10;
cats_buttons.scroll_bg._y=cats_buttons.drag._height;
cats_buttons.for_text._y=cats_buttons.drag._height;
cats_buttons.down._y=cats_buttons.scroll_bg._height+cats_buttons.scroll_bg._y;
}

if (menu_position == "horizontal") {
cats_buttons.drag._x=0;
cats_buttons.drag._y=cats_buttons.down._y=(but_height-cats_buttons.drag._height)/2;
cats_buttons.scroll_bg._height=but_height;
cats_buttons.scroll_bg._width=menuWidthOrHeight-cats_buttons.drag._width-cats_buttons.down._width;
cats_buttons.scroll_bg._x=cats_buttons.for_text._x=cats_buttons.drag._width;
cats_buttons.scroll_bg._y=cats_buttons.for_text._y=0;
cats_buttons.down._x=cats_buttons.scroll_bg._x+cats_buttons.scroll_bg._width;

}


cats_buttons.gotoAndPlay(2);
cats_buttons._visible=1;


//categories buttons
// pages_listing
draw_pages = false;
if (draw_pages == false) {
var k = 1;
while (pages_listing["num"+k]) {
pages_listing["num"+k].removeMovieClip();
k++;
}
imageExists=_root.getGalleryImage(k, _root.gallery_category);
while (imageExists['name']) {
k++;
imageExists=_root.getGalleryImage(k, _root.gallery_category);
}

pages_quant = k/(colls*rows);
var pages_num = parseInt(pages_quant);
if (parseInt(pages_quant) != pages_quant) {
pages_num++;
}
var pages_width;
for (k=1; k<=pages_num; k++) {
duplicateMovieClip(pages_listing.page_num, ["num"+k], k);
pages_listing.page_num._visible = 0;
pages_listing["num"+k].number = (k-1)*colls*rows;
pages_listing["num"+k].page_num_animation.page_text =k;
pages_listing["num"+k].page_num_animation.txt.autoSize = "left";
pages_listing["num"+k].hit._width = pages_listing["num"+k].page_num_animation.txt._width;

if ((pages_width<pages_listing["num"+k]._width) || (!pages_width)) {
pages_width=pages_listing["num"+k]._width;
}
pages_listing["num"+k]._visible=0;



}
z=1;
while (pages_listing["num"+z]) {
pages_listing["num"+z]._x += (pages_width)*z;
pages_listing["num"+z]._visible=1;
z++;
}
}
var draw_pages = true;
if (pages_num == 1) {
page_back_clip._visible = 0;
page_next_clip._visible = 0;
pages_listing._visible = 0;
listing_bg._visible=0;
}
if (pages_num != 1) {
page_back_clip._visible = 1;
page_next_clip._visible = 1;
pages_listing._visible = 1;
listing_bg._visible=1;
}
// pages_listing



if (y_offset == "true") {
if (y_position == "top") {
big_image._y = 0;
preview._y = big_height+big_image_y_offset;
}
if (y_position == "bottom") {
preview._y = 1;
big_image._y = big_image_y_offset+(rows*(maxHeight+v_space)-v_space);
}
}
if (x_offset == "true") {
if (x_position == "right") {
preview._x = 0;
big_image._x = (colls*(maxWidth+h_space)-h_space)+big_image_x_offset;

}
if (x_position == "left") {
big_image._x = 0;
preview._x = big_width+big_image_x_offset;
}

}


if (!c) {
page_back_clip._y = gallery_height-page_back_clip._height ;
pages_listing._y = gallery_height-pages_listing._height ;
page_next_clip._y = gallery_height-page_next_clip._height ;
page_back_clip._x = parseFloat(_root.getGallerySystemProperty("pageBackCorrection"));
page_next_clip._x = gallery_width-page_next_clip._width+parseFloat(_root.getGallerySystemProperty("pageNextCorrection"));
pages_listing._x = (gallery_width-pages_listing._width)/2;

listing_bg._width=gallery_width-2;
listing_bg._height=listing_height;
listing_bg._x=1;
listing_bg._y=page_back_clip._y;

var c = true;
}



// big_image_resize

if (!resize_param) {
big_image.big_image_mask._x=big_image.big_image_mask._x+parseInt(_root.getGallerySystemProperty("previewXCorrection"));
big_image.big_image_mask._y=big_image.big_image_mask._y+parseInt(_root.getGallerySystemProperty("previewYCorrection"));
big_image.big_image_mask._height=big_height+parseInt(_root.getGallerySystemProperty("previewHeightCorrection"));
big_image.big_image_mask._width=big_width+parseInt(_root.getGallerySystemProperty("previewWidthCorrection"));
var resize_param="true";
}
big_image.big_cont_bg._height=big_image.big_image_mask._height;
big_image.big_cont_bg._width=big_image.big_image_mask._width;

big_image.zoom._x=parseInt(_root.getGallerySystemProperty("zoomX"));
big_image.zoom._y=parseInt(_root.getGallerySystemProperty("zoomY"));

// big_image_resize


//set first pisture to load
firstPicToLoad=_root.getGalleryImage(img_start, _root.gallery_category);

if (template_help_preview!="true") {
if (cacheKiller=="true") {
var unCash= new Date().getTime();
big_image.pic_to_load =categoryFolderID+"/big/"+firstPicToLoad['name']+"?cashKiller="+unCash;
}
else {
big_image.pic_to_load =categoryFolderID+"/big/"+firstPicToLoad['name'];
}

}
if (template_help_preview=="true") {
tempCatName = categoryName.split(" ");
newCategoryName=tempCatName.join("_");
big_image.pic_to_load =_root.url+"_"+newCategoryName+"_big_"+firstPicToLoad['name'];
}


big_image.picture_comment =firstPicToLoad['comment'];
big_image.category = categoryName;



big_image.play();
preview._visible=1;
big_image._visible=1;
if (pages_num!=1) {

listing_bg._visible=1;
page_back_clip._visible=1;
page_next_clip._visible=1;
pages_listing._visible=1;

}
cats_buttons._visible=1;

stop();
 
Hallo,

das wird wohl so sein, die Bildpfade scheinen jedoch von externen Resourcen abhängig. Kannst ja mal deinen Code durchsuchen nach "jpg", wirst nichts finden.

Ich verweise hier auch nochmals auf unsere Nutzungsregeln, insbesondere Absatz 3. Mindestens selbst den Code mal auf einschlägige Zeichenkette (jpg) untersuchen hättest du schon können.

Gruss
 
Zuletzt bearbeitet:
Zurück