hey h88, you didn’t know it but you knocked my senses in the right direction and helped me a lot with that.
I was building a menu thing that I was hoping to easily update, and I can’t seem to parse the XML right since I don’t know too much about it.
I was using loadVars to do it, and it was coming along semi-good, but you just reminded me of the #include and it gave me a whole new idea. #include flew right over my head, I know what it is and how to use it, just never thought of it… 'doh!
you will, need some images too either named the same as mine or edit the text file with your own picture names.
one other point i am using 2 variables for my next and prev buttons, make sure you change the values, ie number of lines in your text file or the buttons wont work correctly.
there is one other variable to change, but i cant remember where…lol in the main acrionscript some place. just be sure to change x,y, and z.
sorry guys, #include is not dynamic, if u changed the txtfile command in the textfile, the swf file wont be updated, unless u recreate the swf from the main fla :(!!
am experimenting the solution for u gary_bydesign, so dun worry, ull get wut u need, just hang on a sec.
textfilecontent = &picDataTemp=pic1,pic2,pic3&
then load that in and then add:
picdata = picDataTemp.split(",");
and picdata is an array with 3 elements!