I have an AdvancedDataGrid tree with a ArrayCollection as its dataprovider. Now, for instance, i drag a leaf from one node to another node. To catch the event I'm adding a Listener to dragComplete.
[Code]...
My Problem: I want to know the new node where the leaf was dropped. Actually i would have expected that in the event there is a property like dropParent. This is not the case.
I thought this was going to be easy! I would like to search an XML file for a particular data set i.e. set of nodes depending on a passed variable. However, storing a subset of my XML file via Code:var gallery = this.firstChild; and then searching 'gallery' as you would an array-using a for()-doesn't work since this.firstChild isn't returning an array
I have a entire XML and I've already loaded it. How do I get a specific node? For example: <images> <image url="" label="" etc=""/> <image url=""/> <image url=""/> </image>
I need to pass the entire node through params Like this: var node:XML = xml.images[0]; trace(node); // <image url="" label="" etc=""/> Is that possible?
I have a datagrid called dg that has data populated to it thru an external XML. What I am trying to achieve is whenever someone clicks on an item in the grid it stores that items coordinates to a variable called locCoordinates. At this moment it is tracing out the coordinates for all of the items in the grid. I just dont know how to go about only getting the selected items coordinates.
I want to add new node to the current XML file. It already contain some data and I want to add new node with Flash. I know how to retrieve the data but don't know how to insert
Does anyone know of a way to get an XML node's name? Or to call the node without knowing it's name? I'm looking for something generic and reusable, with the child-node name not hard coded. My XML looks like this:
I've tried to import a string into the class to replace "doc", using XMLList, descendants, elements, children, etc. and nothing seems to work short of turning the whole thing into a string and chopping it up later.
I'm using XML to populate a comboBox Component. How do I get the aactionscript to trace which number in the array the choice is? So for example is my choices are:
choice A choice B choice C
on the dropdown box, whne I click "choice A" I want it to trace "0" because that's it's place in the XML, or if I click "choice C" it will say 2".If i use "length" it will tell me how many. I need to know what to use that tells me which one.
Trying to loop though my XML data and assign to text fields. Not get a specific error but I am pretty sure it has something to do with the way I am referencing the data and assign it to the .text box. I am also having issues with getting the length of my xml so I know how many times to loop.first a summary of my XML:
The e4x implementation in as3 doesn't seem to be able to handle node names that have dashes in them. The musicbrainz api returns xml with a node named artist-list and i can't seem to get it to let me access the node.[code]...
but how to do it if 'text' is actually something contained in a string variable? so how do i add a childnode that has some programmatically generated content?
so i have:
var myXML:XML = <myXML><myXML> var myString:String = "Hello World"
I have an AS that reads a PHP generated xml file. I've got it to get mysql db info just fine. Only problem I'm having is it keeps getting the <item> field from the first node.