# Problem with AS1 arrays in AS2

**URL:** <https://forum.kirupa.com/t/problem-with-as1-arrays-in-as2/248254>\
**Category:** flash\
**Created:** [January 5, 2008, 9:50pm UTC](https://forum.kirupa.com/t/problem-with-as1-arrays-in-as2/248254 "2008-01-05T21:50:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [January 5, 2008, 9:50pm UTC](https://forum.kirupa.com/t/problem-with-as1-arrays-in-as2/248254/1 "2008-01-05T21:50:53Z")

</div>

I have an xml calendar thing and im trying to understand these onRollOver functions and how its displaying this XML.  
XML:

```auto

<?xml version="1.0" encoding="UTF-8"?>
<calendar>
    <event date="2008.1.3" link="http://www.google.com">Off-Road Expo</event>
    <event date="2008.1.21" link="http://www.google.com">Off-Road Expo</event>
    <event date="2008.2.6" link="http://www.google.com">Off-Road Expo</event>
</calendar>

```

This function adds the dates and event to array:

```auto

function makearray(success) {
    if (success == true) {
        for (i = 0; i < myxml.firstChild.childNodes.length; i++) {
            m[myxml.firstChild.childNodes*.attributes.date] = m[myxml.firstChild.childNodes*.attributes.date] + (myxml.firstChild.childNodes*.firstChild.nodeValue + "<br>");
            l[myxml.firstChild.childNodes*.attributes.date] = myxml.firstChild.childNodes*.attributes.link;
        }
    }
    makecalendar(month,year);
}

```

Here is the rollOver and onRollOut code:

```auto

    dd.onRollOver = function() {
        hover.startDrag([lockCenter]);
        var theDay = this._name;
        hover._visible = true;
        hover.txt.text = m[year + "." + month + "." + this.text] + m[month + "." + this.text];
    };
    dd.onRollOut = dd.onDragOut = function() {
        hover.stopDrag();
        hover._visible = false;
        hover.txt.text = "";
    };

```

The problem is, the string its returning is “undefinedOff-Road Expoundefined” If I put the movie in AS1 and flash player 6 it just says “Off-Road Expo”, but I cant use that since the whole site is AS2 and FP9.

Here is a link to see what I am talking about:

[http://ronnieswietek.com/hosted/racewerks/v2](http://ronnieswietek.com/hosted/racewerks/v2)
