9 Replies Latest reply on Jan 3, 2010 12:49 AM by kglad

    unable to display xml text

    flash search

      Hi All,

      Have a happy new year. I would like to discus that i am facing some problem to displaying text which is coming from xml. I have made an xml photo gallery.There are some albums.The thing is that i want to display image caption at the right bottom of the big image. i used script for that but don't know the reaseon why it is not showing.i have used trace to display whether the text is comming or not.but there is no problem it is showing the right caption for the images.and i made the dynamic text selectable and after run the novie if i select the text then only it is visible .The site is http://ark-it.co.cc/mac.should i show the script?please tell me.i have used as2.

       

      thanks

        • 1. Re: unable to display xml text
          kglad Adobe Community Professional & MVP

          usually that means your font color is the same as the textfield's background color.  to remedy, change your font color (or tf background color).

          • 2. Re: unable to display xml text
            flash search Level 1

            hi thanks for ur reply the font color i have changed but there is no change visible.kindly visit my site which i have mentioned in my earlier message

            • 3. Re: unable to display xml text
              kglad Adobe Community Professional & MVP

              where's the text supposed to be displayed?

              • 4. Re: unable to display xml text
                flash search Level 1

                hi thanks again. i am sending the screenshot in the attachment. I want to show my caption just above the thumbnail image right bottom of th big image. As i have mention earlier the text is still there(u can see the pointer will change after you place it there.)but unable to visible

                • 5. Re: unable to display xml text
                  kglad Adobe Community Professional & MVP

                  i can detect the textfield just below and to the right side of your large image.  but i don't see any text when highlighting.

                   

                  in a previous message you stated, "..if i select the text then only it is visible..".  i don't see that.

                  • 6. Re: unable to display xml text
                    flash search Level 1

                    yeah you are right but for this u have to select some menu at bellow and need to go to respective album.ex:wedding.and then u can select.

                    • 7. Re: unable to display xml text
                      kglad Adobe Community Professional & MVP

                      you have some code that's detecting mouse events in that textfield.  why?

                      • 8. Re: unable to display xml text
                        flash search Level 1

                        I did not use any code for mouse over i used only dynamik text.the selectable option checked for dynamik text.the code i used for that is as bellow

                         

                         

                        stop();
                        /*picture._width=770;*/
                        /*des_mc._visible = false;*/
                        visit_mc._visible = false;
                        function loadXML(loaded) {
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                            if (loaded) {
                                xmlNode = this.firstChild;
                                setStartXPos();
                                fileID = [];
                                workID = [];
                                description = [];
                                largeImage = [];
                                thumbImage = [];
                                totalImg = total=xmlNode.childNodes.length;
                                if (total<14) {
                                    nextArrow._visible = false;
                                } else {
                                    nextArrow._visible = true;
                                }// end else if
                                for (i=0; i<total; i++) {
                                    fileID[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                    workID[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                                    thumbImage[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                                    thumbnails_fn(i);
                                    largeImage[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                                    description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                }// end of for
                                ht.autoSize;
                                firstImage();
                            } else {
                                content = "file not loaded!";
                            }// end else if
                        }// End of the function
                        function nextImage() {
                            if (p<total-1) {
                                ++p;
                                if (loaded == filesize) {
                                    picture._visible = true;
                                    picture.targetBox._alpha = 0;
                                    picture.targetBox.loadMovie(serverPath+largeImage[p],1);
                                    trace(serverPath+largeImage[p]);
                                    des_mc.desc_txt.text = description[p];
                                    trace("description next image="+des_mc.desc_txt.text);
                                }
                                // end if
                            }
                            // end if
                        }// End of the function
                        function firstImage() {
                            if (loaded == filesize) {
                                picture._visible = true;
                                des_mc._visible = true;
                                picture.targetBox.loadMovie(serverPath+largeImage[0],1);
                                picture_num();
                                des_mc.desc_txt.text = description[0];
                                trace("picture._width=="+picture._width);
                                trace("description firstimage="+des_mc.desc_txt.text);
                            }
                            // end if
                        }// End of the function
                        function setStartXPos() {
                            preloade_thumb.preload_bar._xscale = 0;
                            picture._visible = false;
                            clientList_mc._visible = false;
                            contactDetail_mc._visible = false;
                            ImageHolderArray = [];
                            counter = 0;
                            xpos = 0;
                        }// End of the function
                        function thumbNailScroller() {
                            this.createEmptyMovieClip("tscroller",1000);
                            scroll_speed = 6;
                            tscroller.onEnterFrame = function() {
                                if (_root._ymouse>=thumbnail_mc._y && _root._ymouse<=thumbnail_mc._y+thumbnail_mc._height) {
                                    if (_root._xmouse>=nextArrow._x && thumbnail_mc.hitTest(nextArrow)) {
                                        thumbnail_mc._x = thumbnail_mc._x-scroll_speed;
                                        backArrow._visible = true;
                                    } else if (_root._xmouse<=backArrow._x+10 && thumbnail_mc.hitTest(backArrow)) {
                                        thumbnail_mc._x = thumbnail_mc._x+scroll_speed;
                                        nextArrow._visible = true;
                                    }
                                    // end else if
                                } else {
                                    delete tscroller.onEnterFrame;
                                    trace("delete enterframe");
                                }// end else if
                            };
                        }// End of the function
                        function thumbnails_fn(k) {
                            var newmc = thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
                            shine_mc = null;
                            thumbnail_mc._visible = false;
                            preloade_thumb._visible = true;
                            ImageHolderArray.push(newmc);
                            backArrow._visible = false;
                            tlistener = new Object();
                            tlistener.onLoadError = function(target_mc) {
                                --totalImg;
                            };
                            tlistener.onLoadInit = function(thumbnail_mc) {
                                if (thumbnail_mc == eval(_level0.thumbnail_mc+".t0")) {
                                    thumbnail_mc._alpha = 100;
                                } else {
                                    thumbnail_mc._alpha = 50;
                                }// end else if
                                ++counter;
                                var totalSize = totalImg-1;
                                preloade_thumb.preload_bar._xscale = 100*counter/totalSize;
                                preloade_thumb.load_text.text = Math.floor(getPercent*100)+"%";
                                if (counter == totalImg-1) {
                                    preloade_thumb._visible = false;
                                    setXpos();

                         

                                }
                                // end if
                                thumbnail_mc._x = ypos;
                                thumbnail_mc.pictureValue = k;
                                thumbnail_mc.onRelease = function() {
                                    setStartXPos();
                                    picture._visible = true;
                                    des_mc._visible = true;
                                    /*des_mc.desc_txt._visible = true;*/
                                    p = this.pictureValue-1;
                                    thumbnail_mc._alpha = 100;
                                    oldShine_mc._alpha = 50;
                                    shine_mc = thumbnail_mc;
                                    oldShine_mc = shine_mc;
                                    nextImage();
                                };
                                thumbnail_mc.onRollOver = function() {
                                    this._alpha = 100;
                                    rightArrow = String(thumbnail_mc);
                                    leftArrow = "_level0.thumbnail_mc.t"+(total-total);
                                    rightArrow = "_level0.thumbnail_mc.t"+(total-1);
                                    target = String(thumbnail_mc);
                                    if (target == rightArrow) {
                                        nextArrow._visible = false;
                                    } else if (target == leftArrow) {
                                        backArrow._visible = false;
                                    }
                                    // end else if
                                };
                                thumbnail_mc.onRollOut = function() {
                                    this._alpha = 50;
                                    shine_mc._alpha = 100;
                                };
                                thumbnail_mc.onReleaseOutside = function() {
                                    this._alpha = 50;
                                    shine_mc._alpha = 100;
                                };
                            };
                            image_mcl = new MovieClipLoader();
                            image_mcl.addListener(tlistener);
                            image_mcl.loadClip(serverPath+thumbImage[k],"thumbnail_mc.t"+k);
                        }// End of the function
                        function setXpos() {
                            for (var _loc1 = 0; _loc1<ImageHolderArray.length; ++_loc1) {
                                if (_loc1 == 0) {
                                    ImageHolderArray[_loc1]._alpha = 100;
                                    thumbnail_mc._alpha = 100;
                                    shine_mc = ImageHolderArray[_loc1];
                                    oldShine_mc = shine_mc;
                                }
                                // end if
                                ImageHolderArray[_loc1]._x = xpos;
                                xpos = xpos+(ImageHolderArray[_loc1]._width+6);
                                des_mc._visible=true;
                            }// end of for
                            nextArrow._visible = true;
                            thumbnail_mc._visible = true;
                           
                        }// End of the function
                        function ltrim(matter) {
                            if (matter.length>1 || matter.length == 1 && matter.charCodeAt(0)>32 && matter.charCodeAt(0)<255) {
                                for (i=0; i<matter.length && (matter.charCodeAt(i)<=32 || matter.charCodeAt(i)>=255); i++) {
                                }// end of for
                                matter = matter.substring(i);
                            } else {
                                matter = "";
                            }// end else if
                            return (matter);
                        }// End of the function
                        function rtrim(matter) {
                            if (matter.length>1 || matter.length == 1 && matter.charCodeAt(0)>32 && matter.charCodeAt(0)<255) {
                                for (i=matter.length-1; i>=0 && (matter.charCodeAt(i)<=32 || matter.charCodeAt(i)>=255); i--) {
                                }// end of for
                                matter = matter.substring(0, i+1);
                            } else {
                                matter = "";
                            }// end else if
                            return (matter);
                        }// End of the function
                        function trim(matter) {
                            return (ltrim(rtrim(matter)));
                        }// End of the function
                        var contactFlag = false;
                        var rollOverColor = "0x000000";
                        var xpos = 0;
                        var counter = 0;
                        var totalImg = 0;
                        var ImageHolderArray = new Array();
                        var serverPath = "";
                        clientList_mc._visible = false;
                        contactDetail_mc._visible = false;
                        preloade_thumb._visible = false;
                        bg._xscale = Stage.width;
                        bg._yscale = Stage.height;
                        bg._x = Stage.width/2-bg._width/2;
                        bg._y = (Stage.height/2-bg._height/2);
                        /*trace("logo x cor"+logo._x);
                        trace("stage width"+stage.width);
                        trace("bg._x"+bg._x);
                        trace("bg._xscale==="+bg._xscale);*/
                        trace(" logo._x "+picture._x);
                        trace(" logo._x "+picture._x);
                        sizeListener = new Object();
                        sizeListener.onResize = function() {
                        };
                        Stage.addListener(sizeListener);
                        var thumbX = mask_mc._x;
                        var thumbY = 602.1;
                        preloade_thumb._visible = false;
                        border_mc._visible = false;
                        backArrow._visible = false;
                        nextArrow._visible = false;
                        thumbnail_mc._visible = false;
                        setStartXPos();
                        clientList_mc._visible = true;

                         

                        thumbnail_mc._x = thumbX;
                        thumbnail_mc._y = thumbY;

                         

                        /*var myData = serverPath + "xml/fassion.xml";
                        xmlData = new XML();
                        xmlData.ignoreWhite = true;
                        xmlData.onLoad = loadXML;
                        xmlData.load(myData);*/
                        this.fashion_mc.fashion_btn.onRelease = function() {
                            border_mc._visible = true;
                            des_mc.desc_txt.text._visible = true;
                            visit_mc._visible = false;
                            function loadXML(loaded) {
                                if (loaded) {
                                    xmlNode = this.firstChild;
                                    fileID = [];
                                    workID = [];
                                    largeImage = [];
                                    thumbImage = [];
                                    totalImg = total=xmlNode.childNodes.length;
                                    if (total<14) {
                                        nextArrow._visible = false;
                                    } else {
                                        nextArrow._visible = true;
                                    }// end else if
                                    for (i=0; i<total; i++) {
                                        fileID[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        workID[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                                        thumbImage[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                                        thumbnails_fn(i);
                                        largeImage[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                                        description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                    }// end of for
                                    ht.autoSize;
                                    firstImage();
                                } else {
                                    content = "file not loaded!";
                                }// end else if
                            }// End of the function
                            setStartXPos();
                            backArrow._visible = false;
                            unloadMovie(thumbnail_mc);
                            unloadMovie(picture.targetBox);
                            xmlData.unload(myData);
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                            var myData = serverPath+"xml/fassion.xml";
                            xmlData = new XML();
                            xmlData.ignoreWhite = true;
                            xmlData.onLoad = loadXML;
                            xmlData.load(myData);
                        };
                        this.bw_mc.bw_btn.onRelease = function() {
                            border_mc._visible = true;
                            des_mc._visible = true;
                            visit_mc._visible = false;
                            function loadXML(loaded) {
                                if (loaded) {
                                    xmlNode = this.firstChild;
                                    fileID = [];
                                    workID = [];
                                    largeImage = [];
                                    thumbImage = [];
                                    description = [];
                                    totalImg = total=xmlNode.childNodes.length;
                                   
                                    if (total<14) {
                                        nextArrow._visible = false;
                                    } else {
                                        nextArrow._visible = true;
                                    }// end else if
                                    for (i=0; i<total; i++) {
                                        fileID[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        workID[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                                        thumbImage[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                                        thumbnails_fn(i);
                                        largeImage[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                                        description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        /*img_name.text  = xmlNode.childNodes[i].childNodes[3].description;*/
                                   }// end of for
                                    ht.autoSize;
                                    firstImage();
                                } else {
                                    content = "file not loaded!";
                                }// end else if
                            }// End of the function
                            setStartXPos();
                            backArrow._visible = false;
                            unloadMovie(thumbnail_mc);
                            unloadMovie(picture.targetBox);
                            xmlData.unload(myData);
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                            var myData = serverPath+"xml/b&w.xml";
                            xmlData = new XML();
                            xmlData.ignoreWhite = true;
                            xmlData.onLoad = loadXML;
                            xmlData.load(myData);
                        };
                        this.portrait_mc.portrait_btn.onRelease = function() {
                            border_mc._visible = true;
                            des_mc._visible = true;
                            visit_mc._visible = false;
                            function loadXML(loaded) {
                                if (loaded) {
                                    xmlNode = this.firstChild;
                                    fileID = [];
                                    workID = [];
                                    largeImage = [];
                                    thumbImage = [];
                                    description = [];
                                    totalImg = total=xmlNode.childNodes.length;
                                   
                                    if (total<14) {
                                        nextArrow._visible = false;
                                    } else {
                                        nextArrow._visible = true;
                                    }// end else if
                                    for (i=0; i<total; i++) {
                                        fileID[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        workID[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                                        thumbImage[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                                        thumbnails_fn(i);
                                        largeImage[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                                        description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        /*img_name.text  = xmlNode.childNodes[i].childNodes[3].description;*/
                                   }// end of for
                                    ht.autoSize;
                                    firstImage();
                                } else {
                                    content = "file not loaded!";
                                }// end else if
                            }// End of the function
                            setStartXPos();
                            backArrow._visible = false;
                            unloadMovie(thumbnail_mc);
                            unloadMovie(picture.targetBox);
                            xmlData.unload(myData);
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                            var myData = serverPath+"xml/portrait.xml";
                            xmlData = new XML();
                            xmlData.ignoreWhite = true;
                            xmlData.onLoad = loadXML;
                            xmlData.load(myData);
                        };
                        this.headshots_mc.headshots_btn.onRelease = function() {
                            border_mc._visible = true;
                            des_mc._visible = true;
                            visit_mc._visible = false;
                            function loadXML(loaded) {
                                if (loaded) {
                                    xmlNode = this.firstChild;
                                    fileID = [];
                                    workID = [];
                                    largeImage = [];
                                    thumbImage = [];
                                    description = [];
                                    totalImg = total=xmlNode.childNodes.length;
                                   
                                    if (total<14) {
                                        nextArrow._visible = false;
                                    } else {
                                        nextArrow._visible = true;
                                    }// end else if
                                    for (i=0; i<total; i++) {
                                        fileID[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        workID[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                                        thumbImage[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                                        thumbnails_fn(i);
                                        largeImage[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                                        description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        /*img_name.text  = xmlNode.childNodes[i].childNodes[3].description;*/
                                   }// end of for
                                    ht.autoSize;
                                    firstImage();
                                } else {
                                    content = "file not loaded!";
                                }// end else if
                            }// End of the function
                            setStartXPos();
                            backArrow._visible = false;
                            unloadMovie(thumbnail_mc);
                            unloadMovie(picture.targetBox);
                            xmlData.unload(myData);
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                            var myData = serverPath+"xml/headshots.xml";
                            xmlData = new XML();
                            xmlData.ignoreWhite = true;
                            xmlData.onLoad = loadXML;
                            xmlData.load(myData);
                        };
                        this.bodybeauty_mc.bodybeauty_btn.onRelease = function() {
                            border_mc._visible = true;
                            des_mc._visible = true;
                            visit_mc._visible = false;
                            function loadXML(loaded) {
                                if (loaded) {
                                    xmlNode = this.firstChild;
                                    fileID = [];
                                    workID = [];
                                    largeImage = [];
                                    thumbImage = [];
                                    description = [];
                                    totalImg = total=xmlNode.childNodes.length;
                                   
                                    if (total<14) {
                                        nextArrow._visible = false;
                                    } else {
                                        nextArrow._visible = true;
                                    }// end else if
                                    for (i=0; i<total; i++) {
                                        fileID[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        workID[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                                        thumbImage[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                                        thumbnails_fn(i);
                                        largeImage[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                                        description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        /*img_name.text  = xmlNode.childNodes[i].childNodes[3].description;*/
                                   }// end of for
                                    ht.autoSize;
                                    firstImage();
                                } else {
                                    content = "file not loaded!";
                                }// end else if
                            }// End of the function
                            setStartXPos();
                            backArrow._visible = false;
                            unloadMovie(thumbnail_mc);
                            unloadMovie(picture.targetBox);
                            xmlData.unload(myData);
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                            var myData = serverPath+"xml/body-beauty.xml";
                            xmlData = new XML();
                            xmlData.ignoreWhite = true;
                            xmlData.onLoad = loadXML;
                            xmlData.load(myData);
                        };
                        this.fam_mc.fam_btn.onRelease = function() {
                            des_mc._visible = true;
                            border_mc._visible = true;
                            visit_mc._visible = true;
                            function loadXML(loaded) {
                                if (loaded) {
                                    xmlNode = this.firstChild;
                                    fileID = [];
                                    workID = [];
                                    largeImage = [];
                                    thumbImage = [];
                                    totalImg = total=xmlNode.childNodes.length;
                                    if (total<14) {
                                        nextArrow._visible = false;
                                    } else {
                                        nextArrow._visible = true;
                                    }// end else if
                                    for (i=0; i<total; i++) {
                                        fileID[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                                        workID[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                                        thumbImage[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                                        thumbnails_fn(i);
                                        largeImage[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                                        description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;/*dynamik text*/
                                    }// end of for
                                    ht.autoSize;
                                    firstImage();
                                } else {
                                    content = "file not loaded!";
                                }// end else if
                            }// End of the function
                            setStartXPos();
                            backArrow._visible = false;
                            unloadMovie(thumbnail_mc);
                            unloadMovie(picture.targetBox);
                            xmlData.unload(myData);
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                            var myData = serverPath+"xml/wedding.xml";
                            xmlData = new XML();
                            xmlData.ignoreWhite = true;
                            xmlData.onLoad = loadXML;
                            xmlData.load(myData);
                        };
                        this.contact_mc.contactBtn.onRelease = function() {
                            preloade_thumb._visible = false;
                            des_mc._visible = false;
                            visit_mc._visible = false;
                            border_mc._visible = false;
                            backArrow._visible = false;
                            nextArrow._visible = false;
                            thumbnail_mc._visible = false;
                            setStartXPos();
                            contactDetail_mc._visible = true;
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                        };
                        this.bio_mc.bio_btn.onRelease = function() {
                            preloade_thumb._visible = false;
                            des_mc._visible = false;
                            visit_mc._visible = false;
                            border_mc._visible = false;
                            backArrow._visible = false;
                            nextArrow._visible = false;
                            thumbnail_mc._visible = false;
                            setStartXPos();
                            clientList_mc._visible = true;
                            thumbnail_mc._x = thumbX;
                            thumbnail_mc._y = thumbY;
                        };
                        p = 0;
                        preloader.onEnterFrame = function() {
                            /* picture.targetBox._width=770;*/
                            picture.targetBox._alpha = 0;
                            picture.targetBox._alpha = 100;
                            picture.targetBox._x = (picture._width-picture.targetBox._width)/2;
                            /*picture._y =(bg._height-picture._height)/875;*/
                            /*picture._y = 10;*/
                            /*trace("bg y cordinate="+bg._y);
                            trace("picture y cor"+picture._y);*/
                            filesize = picture.targetBox.getBytesTotal();
                            loaded = picture.targetBox.getBytesLoaded();
                            getPercent = loaded/filesize;
                            preloader._visible = true;
                            if (loaded != filesize) {
                                preloader.preload_bar._xscale = 100*loaded/filesize;
                                preloader.load_text.text = Math.floor(getPercent*100)+"%";
                            } else {
                                preloader._visible = false;
                                if (picture.targetBox._alpha<100) {
                                    picture.targetBox._alpha = picture.targetBox._alpha+10;

                         

                                }
                                // end if
                            }// end else if
                        };
                        backArrow.onRollOver = function() {
                            thumbNailScroller();
                            var _loc2 = new Color(this);
                            _loc2.setRGB(6710886);
                        };
                        backArrow.onRollOut = function() {
                            var _loc2 = new Color(this);
                            _loc2.setRGB(10066329);
                            delete tscroller.onEnterFrame;
                        };
                        nextArrow.onRollOver = function() {
                            thumbNailScroller();
                            var _loc2 = new Color(this);
                            _loc2.setRGB(6710886);
                            rightArrow = String(thumbnail_mc);
                            leftArrow = "_level0.thumbnail_mc.t"+(total-total);
                            rightArrow = "_level0.thumbnail_mc.t"+(total-1);
                            target = String(thumbnail_mc);
                        };
                        nextArrow.onRollOut = function() {
                            var _loc2 = new Color(this);
                            _loc2.setRGB(10066329);
                            delete tscroller.onEnterFrame;
                        };
                        backArrow1._visible = false;
                        trace(mask_mc._x+"    "+thumbnail_mc._x);
                        var shine_mc;

                        • 9. Re: unable to display xml text
                          kglad Adobe Community Professional & MVP

                          that's too much code to correct in this forum but i can see you have, at least, one nested named function.  that's a problem.

                           

                          unnest loadXML()