digilifestudio

FAQ - Flash XML Galleries / ActionScript:


My XML gallery does not display any images.

Make sure you put the xml files, images folder in the right place:

Say you have a HTML file called a.html and it embeds the swf file called a.swf. You also have a xml file called a.xml and an image folder called "imgs". You should always put a.html, a.xml and "imgs" folder into the same folder, nomatter which folder a.swf is in.

I defined 10 photos in the XML file but why does the gallery only display 5?

Normally that's because there are some syntax errors in the XML file. Examine your xml file carefully you may find some syntax error in the fifth or sixth image's xml tag.

Not closing the tag properly is a very common mistake:

Correct:
<image>......</image>

Wrong:
<image>......</image
<image>......<image>
<image>......</images>
How can I add html text into a textbox?

1. make the textbox support html format:

yourTextBox.html=true;
yourTextBox.htmlText = "<b>something</b>";

2. if you want to read htmlText from an xml file, you need to write it this way in the xml file: (only change the text in red)

<description><![CDATA[ <b>Title</b><br />Your text...]]></description>

How do I load the gallery into another movie (swf file)?

Put the following code into the first frame on the first layer of the gallery:

this._lockroot = true;

How do I have multiple galleries on one site?

1. Open the gallery.fla file

2. On your webpage:

© Copyright DigiLife Studio . All rights reserved.