Actionscript Examples?

We are using Actionscript and I was hoping there may be some code examples that showed how to properly construct the arguments Object using the elements structure for Report.QueueOvertime. I have looked at the Flex example in the code gallery and have therefore been able to properly execute calls using the metrics structure and was hoping to add on the elements structure. Any help would be greatly appreciated.
var top:int = 20; var startingWith:int = 1; var reportDefinitionElement:Object = new Object(); reportDefinitionElement.id = "page"; reportDefinitionElement.classification = ""; reportDefinitionElement.top = top; reportDefinitionElement.startingWith = startingWith; reportDefinitionElement.search = null; reportDefinitionElement.selected = []; op.arguments = { "reportDescription": {"date":"", "metrics":["pageviews"], "elements":[reportDefinitionElement], "dateFrom":df.format(dateFrom.selectedDate), "dateTo":df.format(dateTo.selectedDate), "dateGranularity":"", "reportSuiteID":report_suites.value }};
Reply
Don't forget the "metrics" is its type: reportDefinitionMetricList which is a list of reportDefinitionMetric items. For example, you can set segment and id properties using the following... var reportDefinitionMetric:Object = new Object(); reportDefinitionMetric.id = "pageviews";
Reply
You can grab Actionscript sample code and guide out of the Omniture Developer Getting Started Kit at https://developer.omniture.com/node/1065
Reply

Must be logged in to comment. now to comment!