Flash - Importing TXTs

V-PV-P State College, PA Member
edited September 2006 in Internet & Media
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...

Comments

  • airbornflghtairbornflght Houston, TX Icrontian
    edited September 2006
    Yeh, basically what he has is a flash menu with said ammount of dynamic text boxes.

    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]
  • V-PV-P State College, PA Member
    edited September 2006
    Yeh, basically what he has is a flash menu with said ammount of dynamic text boxes.

    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
    var example:String ("Home")
    
    Var is telling flash its a variable.  Example is the name of the variable.  String is the data type, could be number, or something else, and in parentheses is the data.
    
  • airbornflghtairbornflght Houston, TX Icrontian
    edited September 2006
    I believe I found what I wanted

    Looks as though I am going to begin to like using XML now that the possibilities are starting to unfold in my head.
Sign In or Register to comment.