# Strange problem Flash 8

**URL:** <https://forum.kirupa.com/t/strange-problem-flash-8/253424>\
**Category:** flash\
**Created:** [March 1, 2008, 12:46am UTC](https://forum.kirupa.com/t/strange-problem-flash-8/253424 "2008-03-01T00:46:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anduriliel](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Anduriliel](https://forum.kirupa.com/u/Anduriliel)\
**Post date:** [March 1, 2008, 12:46am UTC](https://forum.kirupa.com/t/strange-problem-flash-8/253424/1 "2008-03-01T00:46:51Z")

</div>

I’ve got more than strange problem…

I’ve got a simple XML gallery  
Here you’ve got a script:

```auto
var thumb_spacing = 36;
var thumb_space = 26;

// load variables object to handle loading of text
var description_lv = new LoadVars();
description_lv.onData = function(raw_text){
    description_txt4.html = true;
    description_txt4.htmlText = raw_text;
}

function GeneratePortfolio(portfolio_xml){
    var portfolioPictures = portfolio_xml.firstChild.childNodes;
    for (var i = 0; i < portfolioPictures.length; i++){
        var currentPicture = portfolioPictures*;
        
        var currentThumb_mc = menu_mc4.createEmptyMovieClip("thumbnail_mc"+i,i);
        
        currentThumb_mc._y = Math.ceil((i-4)/5) * thumb_space;
        currentThumb_mc._x = i%5 * thumb_spacing;
        
        currentThumb_mc.createEmptyMovieClip("thumb_container",0);
        currentThumb_mc.thumb_container.loadMovie(currentPicture.attributes.thumb);
        
        currentThumb_mc.title = currentPicture.attributes.title;
        currentThumb_mc.image = currentPicture.attributes.image;
        currentThumb_mc.description = currentPicture.attributes.description;
        
        
        currentThumb_mc.onRollOver = currentThumb_mc.onDragOver = function(){
            info_txt4.text = this.title;
        }
        currentThumb_mc.onRollOut = currentThumb_mc.onDragOut = function(){
            info_txt4.text = "";
        }
        currentThumb_mc.onRelease = function(){
            image_mc4._alpha = 0;
            image_mc4.loadMovie(this.image);
            description_lv.load(this.description);
        }
    }
}

// xml object for xml content (defines sources for selections)
var portfolio_xml = new XML();
portfolio_xml.ignoreWhite = true;
portfolio_xml.onLoad = function(success){
    if (success) GeneratePortfolio(this);
    else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
// load
portfolio_xml.load("projects.xml");
    
    
///////////////////////////////////
this.onEnterFrame = function () {
    filesize = image_mc4.getBytesTotal();
    loaded = image_mc4.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
        preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
        preloader._visible = false;
        if (image_mc4._alpha< 100) {
            image_mc4._alpha += 10;
        }
    }
};

```

And off-line - everything looks fine after compilation, but on-line nothing is visible,

That’s the standard structure of XML:

\<?xml version=“1.0” ?\>  
\<portfolio\>  
\<picture title = “xxx”  
thumb = “portfolio\_images/thumbs/xxx.gif”  
description = “portfolio\_text/xxx.txt”  
image = “portfolio\_images/xxx.jpg” /\>  
\</portfolio\>

Is anybody here who could help me?

Cheers  
Ice
