mythprod
08-17-2008, 06:47 AM
I've been googling this for a while now and I think I'm not finding what I want because I'm not getting my terminology right. I'll bet there's already a lot of code to get me started, I just need help from you all to help me narrow my search (I'm new which is why I sound like I don't know what I'm talking about - because I don't. :-P).
I'm using Flex 3 / air / flash CS3 / AS3 to build a frontend to allow a "normal" (read non-programmer) user to edit and update an existing xml document. I've found text editors already built that I can start with and that's a piece of the puzzle. What I'm not able to find is a way to extract certain pieces of that existing xml and then place those values into text input fields in the flash interface. Basically I want to take the most commonly changed values of that xml document and make it easy for the user to change their playlist without having to get into a xml editor and do it manually - a gui front-end to read, edit and update existing xml documents.
For example in the existing xml document, there's an attribute that asks for the name and path of a background image. This is something that changes often depending on the user so I would like to put it as a text input field in my flash GUI. Once the user edits that existing value (path & filename of the background image) and hits save, I'd like for that value to overwrite the previous value in the xml document (utilizing air of course) and update the new path and filename in its place.
I'm assuming I want to "databind" that xml value with a text input box in flex. I come from more of a C background so given that, I'm assuming I'll want to track the position of my cursor within the document while I'm reading it to read and write to the xml document?
Any links, tutorials, code or otherwise you could help me get pointed in the right direction I'd be most appreciative!
TIA!
I'm using Flex 3 / air / flash CS3 / AS3 to build a frontend to allow a "normal" (read non-programmer) user to edit and update an existing xml document. I've found text editors already built that I can start with and that's a piece of the puzzle. What I'm not able to find is a way to extract certain pieces of that existing xml and then place those values into text input fields in the flash interface. Basically I want to take the most commonly changed values of that xml document and make it easy for the user to change their playlist without having to get into a xml editor and do it manually - a gui front-end to read, edit and update existing xml documents.
For example in the existing xml document, there's an attribute that asks for the name and path of a background image. This is something that changes often depending on the user so I would like to put it as a text input field in my flash GUI. Once the user edits that existing value (path & filename of the background image) and hits save, I'd like for that value to overwrite the previous value in the xml document (utilizing air of course) and update the new path and filename in its place.
I'm assuming I want to "databind" that xml value with a text input box in flex. I come from more of a C background so given that, I'm assuming I'll want to track the position of my cursor within the document while I'm reading it to read and write to the xml document?
Any links, tutorials, code or otherwise you could help me get pointed in the right direction I'd be most appreciative!
TIA!