# Help understanding script for rotating objects

**URL:** <https://forum.kirupa.com/t/help-understanding-script-for-rotating-objects/294386>\
**Category:** Uncategorized\
**Created:** [August 13, 2009, 10:57am UTC](https://forum.kirupa.com/t/help-understanding-script-for-rotating-objects/294386 "2009-08-13T10:57:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![donkeykong](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@donkeykong](https://forum.kirupa.com/u/donkeykong)\
**Post date:** [August 13, 2009, 10:57am UTC](https://forum.kirupa.com/t/help-understanding-script-for-rotating-objects/294386/1 "2009-08-13T10:57:30Z")

</div>

Hi all  
would some help me with this, I am trying to understand what part of AS3 script says loop through(create a continues 360 loop of objects) the images from an XML file, does this make any sense.

in my script I have this

```auto
for(var i:int = 0; i < images.length(); i++)

```

is this the part that says loop the images/objects  
this is a little more to the script including the above to maybe understand better?

```auto
private function onXMLComplete(event:Event):void
{
// Create an XML Object from loaded data
var data:XML = new XML(xmlLoader.data);
 
// Now we can parse it
var images:XMLList = data.image;
 
for(var i:int = 0; i < images.length(); i++) <<<<<<<<FROM ABOVE /// {
// Get info from XML node
var imageName:String = images*.@name;
var imagePath:String = images*.@path;
var titles:String = images*.@title;
var texts:String = images*.@text;

```
