Problem Loading XML into Flash

Posted on 2004-10-17
Last Modified: 2010-04-06
I am using the beautiful Gallery Component developed on

I am using this version

You can find the source files here
Make sure to click on the info link and scroll a bit and you will see the link.

My problem:
When I test the original gallery movie it works great and I can see the comments area at the bottom. However when I import the .swf into another flash file it loses the comments text.  The thumbnail description and drop down box is still populated so I know the .xml file is being read but comments.

I admittedly am not well versed in xml or actionscripting so I may be doing something wrong.  Can anyone help!!!
Question by:rachelcjanssen
LVL 26

Expert Comment

ID: 12353336
Hi Rachel,

You may have to post the relevant parts of the actionscript--the more the merrier.

Mike Sharp

Expert Comment

ID: 12376475
I think you downloaded the wrong file. The file you described is just the flash component of the gallery itself. If you want to download the gallery demo with the combo box, you have to click on the link on the bottom of the demo at and download the file

Author Comment

ID: 12376924
Maarten van de Voorde himself answered my question.

Here it is:
//parse code from xml file
function parse(success){

    var root = this.firstChild;
    var n = root.childNodes.length;
    var m = this._tl.menu_cb;
    for (var i = 0; i < n; i++){
    m.setChangeHandler('cb_handler', this._tl)

// --::[ 4. attach the gallery ]::-- //
    g1 = this._tl.attachMovie("FGallerySymbol","myGallery",10,{_x:0, _y:0});
    g1.setTnSize(84, 84);
    g1.setTnTitleStyle('title');   // can be 'name' or 'title'
    // --::[creating a commentfield ]::-- //
    var imageText = g1.imageText;
        function(pr_op, o_txt, n_txt){
            this._parent.comment_txt.text = n_txt;
    //select first item from combo/listbox

The best worked!

Accepted Solution

modulo earned 0 total points
ID: 12624014
PAQed with points refunded (500)

Community Support Moderator

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
css border raidius issue 7 89
How to analyze web traffic logs 10 111
Adding a hidden div to each row in a table 6 86
php mysql check email already in database. (second check) 7 65
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question