babaloui
02-16-2004, 03:30 PM
hi all,
My question regarding this tutorial:
http://www.actionscripts.org/tutorials/intermediate/Dynamic_menu_with_submenus/index.shtml
it wroks fine, BUT I want to Load External Text File with
loadVariablesNum("items.txt", 0, "POST");
BUT does not work with External File at all
Can you tell me how can I use the text file to load the items to the MENU?
// to be replaced by extrenal text file.
// menu items
total = 11;
text1 = "home";
text2 = "dogs";
text3 = "cats";
text4 = "rabbits";
text5 = "hamsters";
text6 = "rats";
text7 = "mice";
text8 = "guinea pigs";
text9 = "ferrets";
text10 = "chinchillas";
text11 = "monkeys";
// submenus
subText2 = 2;
stext21 = "puppies";
stext22 = "adult";
subText4 = 2;
stext41 = "short hair";
stext42 = "long hair";
I have this TEXT FILE :
&total = 11&text1 = home&text2 = dogs&text3 = cats&text4 = rabbits&text5 = hamsters .... ETC
My question regarding this tutorial:
http://www.actionscripts.org/tutorials/intermediate/Dynamic_menu_with_submenus/index.shtml
it wroks fine, BUT I want to Load External Text File with
loadVariablesNum("items.txt", 0, "POST");
BUT does not work with External File at all
Can you tell me how can I use the text file to load the items to the MENU?
// to be replaced by extrenal text file.
// menu items
total = 11;
text1 = "home";
text2 = "dogs";
text3 = "cats";
text4 = "rabbits";
text5 = "hamsters";
text6 = "rats";
text7 = "mice";
text8 = "guinea pigs";
text9 = "ferrets";
text10 = "chinchillas";
text11 = "monkeys";
// submenus
subText2 = 2;
stext21 = "puppies";
stext22 = "adult";
subText4 = 2;
stext41 = "short hair";
stext42 = "long hair";
I have this TEXT FILE :
&total = 11&text1 = home&text2 = dogs&text3 = cats&text4 = rabbits&text5 = hamsters .... ETC