OK..ive found it..i forgot to put the "this" in the thumbHolder Variable...
On 12/20/05, Jose Maria Barros <[EMAIL PROTECTED]> wrote:
> Heelo---well ive made some "progress", but the problem is that it
> only shows one thumbnail of the xml grid--..can anyone help me?
>
>
> ///XML
> myPhoto = new XML();
> myPhoto.ignoreWhite = true;
> myPhoto.onLoad = function(success) {
> //portfolioTag = this.firstChild;
> gridx = 58;
> gridy = 58;
> num = 0;
> for (i=0; i<3; i++)
> for (j=0; j<3; j++) {
> this.picHolder = this.firstChild.childNodes[i+(j*3)];
> this.thumbHolder =
> thumbnails.createEmptyMovieClip("thumbnail"+num, num);
> thumbHolder._x=gridx*i;
> thumbHolder._y=gridy*j;
> num++;
> this.thumbLoader =
> this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
>
> this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
> this.thumbHolder.main =
> this.picHolder.attributes.main;
> this.thumbHolder.onRelease = function() {
> loader.loadMovie(this.main);
> };
> }
> };
> myPhoto.load("design.xml");
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders