Ask a Question related to Macromedia Flash Data Integration, Design and Development.
-
absurd29 #1
ActionScript to bind XML data to components
How can I use ActionScript to bind XML data to a comboBox component instead of
using the component inspector? (I have done the latter, successfully, but that
doesn?t allow access to the code - .)
My ActionScript so far imports the data (the trace picks it up) ? but the
?cbType.dataProvider line? doesn?t work. It works when I change the data
provider to an array ? so what am I doing wrong?
MY CODE:
import mx.data.components.XMLConnector;
var xcFestival:XMLConnector = new XMLConnector();
xcFestival.ignoreWhite = true;
xcFestival.direction = "receive";
xcFestival.URL = "festivalItems.xml";
xcFestival.trigger();
//POPULATE THE COMPONENTS WITH THE DATA
var festXMLlistener:Object = new Object();
festXMLlistener.result = function(evt:Object) {
trace(xcFestival.results);
cbType.dataProvider = xcFestival.results;
};
xcFestival.addEventListener("result",festXMLlisten er);
absurd29 Guest
-
Trying to BIND data from Oracle
This should be very simple, but it is giving me a lot of problems. I am returning data from Oracle into a datagrid, then I am trying to use the... -
How do I dynamically bind two components?
How do I dynamically bind two components with out the use of the components inspector panel? My problem began when I dynamically created an... -
Bind UI Components to a Specific Row in DataSet
I'm using and XML connector to read in data, and I have the XML connector successfully bound to a DataSet. Instead of displaying that data from the... -
Opening .mxml components via ActionScript
I am working on a dynamic TabBar that will populate a datagrid under each tab with reports from a document archive. I want to build my datagrid in a... -
ActionScript Control - Accordion/Tab components
Where can we find documentation specific to ActionScript functions exposed.. for example ability to move to the next page in a tab/accordion without...



Reply With Quote

