# Some XML help

**URL:** <https://forum.kirupa.com/t/some-xml-help/185306>\
**Category:** flash\
**Created:** [April 12, 2006, 12:12pm UTC](https://forum.kirupa.com/t/some-xml-help/185306 "2006-04-12T12:12:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)\
**Post date:** [April 12, 2006, 12:12pm UTC](https://forum.kirupa.com/t/some-xml-help/185306/1 "2006-04-12T12:12:55Z")

</div>

I want to make a site that is run by xml. i kind of want something like this [http://www.philippearchontakis.com/](http://www.philippearchontakis.com/) the x buttons are build depending on how many swf’s the gallery has and the details are also coming from a xml file same as the links in the bottom left. I allready examen the XML file but building the main flash file i dont get. Also some of the external swf files can slide with the x buttons that appear in the bottom left. I know how to make a slider but i dont know how i can let flash automatically make x buttons for sliding when its to big for the main movie to show. Can somebody help me with some tips / tutorials / source files The link to the xml file is [http://www.philippearchontakis.com/site.xml](http://www.philippearchontakis.com/site.xml) so you can see how he did it. Basically i need to know: \*How to let flash automatically add a x button when a new swf file is added in the XML file \*How to let flash automatically add x buttons for sliding when the swf files width is bigger then the movieclip it is loaded in. Thanks in advance

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 12, 2006, 12:58pm UTC](https://forum.kirupa.com/t/some-xml-help/185306/2 "2006-04-12T12:58:34Z")

</div>

You can duplicate/attach x buttons according to the childNodes length  
The buttons in the bottom are in the external .swf

scotty(-:

---

<div class="post-metadata">

**Author:** ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)\
**Post date:** [April 12, 2006, 3:39pm UTC](https://forum.kirupa.com/t/some-xml-help/185306/3 "2006-04-12T15:39:17Z")

</div>

i may be wrong but i got all the files out of my temporary internet files and the X mark buttons where not in the external swf.

Anyways could you give me a bit more info ? is there a website where i can learn about this stuff because everywere i look its just simple importing xml into a textfield stuff. Is there a a site that go’s much deeper in Xml with flash and also maybe with tutorials that show you how to do it ?

---

<div class="post-metadata">

**Author:** ![Wayne](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wayne/32/16501_2.png) [@Wayne](https://forum.kirupa.com/u/Wayne)\
**Post date:** [April 12, 2006, 3:42pm UTC](https://forum.kirupa.com/t/some-xml-help/185306/4 "2006-04-12T15:42:51Z")

</div>

yes my school project is the same level as what you request. But Nobody cud find something to learn from.

I managed to load my swf files with xml, + the information text also. But Im having hard times to add more buttons.:cantlook: Im just mad, im so really confused and Im trying at my best here, going threw kirupa tutorials on xml helpt me out abit.

btw. the buttom buttons are included in the swf file. but the main xes at the top is in a main movie.

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 12, 2006, 3:50pm UTC](https://forum.kirupa.com/t/some-xml-help/185306/5 "2006-04-12T15:50:20Z")

</div>

For the external, I think it’s more simple to have the bttons there (eg for testing), but you can load them with xml as well.  
For the tutorials, check [http://www.kirupa.com/web/xml/index.htm](http://www.kirupa.com/web/xml/index.htm)  
and you’ll find a lot of threads (especially gallery threads) that deal with it

scotty(-:

---

<div class="post-metadata">

**Author:** ![Wayne](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wayne/32/16501_2.png) [@Wayne](https://forum.kirupa.com/u/Wayne)\
**Post date:** [April 12, 2006, 6:20pm UTC](https://forum.kirupa.com/t/some-xml-help/185306/6 "2006-04-12T18:20:49Z")

</div>

yes Im going threw them already sir. But I was unable to find a answer to my portfolio try at-\> [http://www.kirupa.com/web/xml/examples/portfolio.htm](http://www.kirupa.com/web/xml/examples/portfolio.htm)

when I add more pictures for example the thumbs goes over the loading box and away out of the main scene. Why or how can I organise them so that they load in the thumb\_mc and not out of it. Making the thumbs listed and not away outer point view. this confuses me :book:

---

<div class="post-metadata">

**Author:** ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)\
**Post date:** [April 13, 2006, 8:14am UTC](https://forum.kirupa.com/t/some-xml-help/185306/7 "2006-04-13T08:14:02Z")

</div>

yeah thats what i was thinking as well on my sample site if the buttons are to much the start a new line of buttons underneed eithother how can i let flash do that ?

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 13, 2006, 8:20am UTC](https://forum.kirupa.com/t/some-xml-help/185306/8 "2006-04-13T08:20:02Z")

</div>

Depending on your structure, but this may help, it will give you 10 buttons in a row

```auto
//assuming that total is the amount of nodes
for (var i = 0; i<total; i++) {
	var x_btn = x_btn.duplicateMovieClip("x_btn"+i, i);
	x_btn._x = (i%10)*40;
	x_btn._y = Math.floor(i/10)*40;
}

```

scotty(-:

---

<div class="post-metadata">

**Author:** ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)\
**Post date:** [April 13, 2006, 5:05pm UTC](https://forum.kirupa.com/t/some-xml-help/185306/9 "2006-04-13T17:05:23Z")

</div>

Thanks for you help scotty i will try to build it 😏 my skills in actionscript are not that good so maybe i will come back for some help 🙂

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [April 14, 2006, 7:12am UTC](https://forum.kirupa.com/t/some-xml-help/185306/10 "2006-04-14T07:12:27Z")

</div>

:thumb:
