[Flashcoders] Looking for simple solution to edit xml inside flash file

0 views
Skip to first unread message

natalia Vikhtinskaya

unread,
Feb 12, 2014, 1:54:32 AM2/12/14
to Flash Coders List
Hi to all
I need to find simple for user way to edit information in xml file (delete,
add, edit). Is that possible to do with data grid or scroll list? I can not
use outside CMS for xml I have to find way to do that in flash. Something
like -click btn edit-editable table of nodes on the screen -save- recreate
xml file from new list. Please give me advice for user friendly solution.
To see some examples would be very helpful.

Thank you in advance.
_______________________________________________
Flashcoders mailing list
Flash...@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

John R. Sweeney Jr.

unread,
Feb 12, 2014, 3:03:46 AM2/12/14
to Flash Coders List
If your PC based, http://www.microsoft.com/en-us/download/details.aspx?id=7973 This is free.

There are many free editors for MAC or PC out there. Just do a search.

John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169

natalia Vikhtinskaya

unread,
Feb 12, 2014, 4:28:37 AM2/12/14
to Flash Coders List
I need system inside Flash file for simple users.

John R. Sweeney Jr.

unread,
Feb 12, 2014, 11:42:15 AM2/12/14
to Flash Coders List
Hi,

Then either you have to roll your own, (write something from scratch in AS3) or look for something online like this: http://www.findbestopensource.com/product/as3-xmltexteditor

Where you can take someone else's code as a start and then try and incorporate/modify it into your project.

Good luck,


John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Feb 12, 2014, at 3:28 AM, natalia Vikhtinskaya <natav...@gmail.com> wrote:

> I need system inside Flash file for simple users.


natalia Vikhtinskaya

unread,
Feb 12, 2014, 2:01:09 PM2/12/14
to Flash Coders List
Yes, I see that no good solution. I use textField for editing node after
selection. But I have problem with deleting node. Maybe you can give me
advice.
I select this is
<title titleName="First Words 1">set1</title>

//var node:XMLList;
trace(node.childIndex())
//0

trace(node)
set1

trace(node.parent())
<topic topicName="Reading">
<title titleName="First Words 1">set1</title>
<title titleName="Second Words 1">set2</title>
</topic>

I can not find way to delete this line that has "set1"
<title titleName="First Words 1">set1</title>

when I use
trace(node.parent().children()[ node.childIndex() ])
that delete "set1"

John R. Sweeney Jr.

unread,
Feb 12, 2014, 2:29:43 PM2/12/14
to Flash Coders List
This can help you understand creating and editing. There are many more resources out there.

http://www.kirupa.com/web/xml/XMLmanageData3.htm



John R. Sweeney Jr.
Senior Interactive Multimedia Developer
OnDemand Interactive Inc
Hoffman Estates, IL 60169




On Feb 12, 2014, at 1:01 PM, natalia Vikhtinskaya <natav...@gmail.com> wrote:

> Yes, I see that no good solution. I use textField for editing node after
> selection. But I have problem with deleting node. Maybe you can give me
> advice.
> I select this is
> <title titleName="First Words 1">set1</title>
>
> //var node:XMLList;
> trace(node.childIndex())
> //0
>
> trace(node)
> set1
>
> trace(node.parent())
> <topic topicName="Reading">
> <title titleName="First Words 1">set1</title>
> <title titleName="Second Words 1">set2</title>
> </topic>
>
> I can not find way to delete this line that has "set1"
> <title titleName="First Words 1">set1</title>
>
> when I use
> trace(node.parent().children()[ node.childIndex() ])
> that delete "set1"

natalia Vikhtinskaya

unread,
Feb 12, 2014, 2:45:05 PM2/12/14
to Flash Coders List
Thank you. In this article I see removeNode
xmlSets..subject.(@sbjName==subjectCb.selectedLabel).topic.(@topicName==topicCb.selectedLabel).title.(@titleName==titleCb.selectedLabel).removeNode()
does not work the same as delete.
Reply all
Reply to author
Forward
0 new messages