Flash - Importing TXTs
V-P
State College, PA Member
Okay, I made a navigation menu in Flash, and this menu will be different on each page, and rather than make a different SWF for each page, I thought there might be a way to make it read a txt and import the text, and put it in a different text box for each button. In the txt, I want to be able to seperate what the buttons will say with commas or something.
~ I hope that makes sense...
~ I hope that makes sense...
0
Comments
and he thought we could just edit the as for each menu, and I said why not just have it import the data from an external file. I found this and it looks like what we need. I'm just now reading it, but it talks about the xml files and how to import them, I may need a bit of help with them though.
Basically the two properties we need are name and link. it looks like we could do is:
[PHP]<name="Short-Media" address="http://short-media.com">[/PHP]
is that what we need to do? I'm still reading it, but any help is appreciated.:bigggrin:
would anyone minde explaining some of the code, especially the part dealing with the xml data and how it is treated and how you assign that data to variables. also, on the the following bit of code, what is the other parameter the method is looking for?
[PHP]getxmldata=new XML();
getxmldata.load("xmldata.xml","");[/PHP]
Variable
Looks as though I am going to begin to like using XML now that the possibilities are starting to unfold in my head.