I want to make a site that is run by xml. i kind of want something like this 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 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
You can duplicate/attach x buttons according to the childNodes length
The buttons in the bottom are in the external .swf
scotty(-:
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 ?
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.
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
and you’ll find a lot of threads (especially gallery threads) that deal with it
scotty(-:
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
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
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 ?
Depending on your structure, but this may help, it will give you 10 buttons in a row
//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(-:
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
:thumb: