views:

324

answers:

0

I have a loader loading two files. One can be anything, and the other is the one im working on. It has a textField.text within which it should list the variables in _level0 for both files. I dont mean objects or info like what os im using (which is all i can get now). I mean the vars defined in the AS. Like what you get when you debug you can get all vars from Debug -> List Variables (on CS4 for mac). Only for both flashes. (both should be in

_level0).

And id like it to be recursive...

I now use:

    function listProps(o) : Void
    {
        for (var i in o)
        {
            textMenu.testField.text += i+" = "+o[i]+"        "
        }
        if (o[i] instanceof Object)
        {
            listProps(o[i])
        }
    }
listProps(_level0);
varListInterval=setInterval( listProps(_level0), 1000 );