# Action script help

**URL:** <https://forum.kirupa.com/t/action-script-help/248078>\
**Category:** Uncategorized\
**Created:** [January 3, 2008, 4:22pm UTC](https://forum.kirupa.com/t/action-script-help/248078 "2008-01-03T16:22:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnnswordfish](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@nnnswordfish](https://forum.kirupa.com/u/nnnswordfish)\
**Post date:** [January 3, 2008, 4:22pm UTC](https://forum.kirupa.com/t/action-script-help/248078/1 "2008-01-03T16:22:14Z")

</div>

ok.here is my as script

```auto
import mx.controls.Tree;

class TreeNavMenump3a extends MovieClip {
    var menuXML:XML;
    var menuTreemp3a:Tree;
    function TreeNavMenump3a() {
        // Set up the appearance of the tree and event handlers.
        menuTreemp3a.setStyle("fontFamily", "_sans");
        menuTreemp3a.setStyle("fontSize", 17);
        
        // Load the menu XML.
        var treeNavMenump3a = this;
        menuXML = new XML();
        menuXML.ignoreWhite = true;
        menuXML.load("mp3a.php");
        menuXML.onLoad = function() {
            treeNavMenump3a.onMenuLoaded();
        };
    }
    function change(event:Object) {
        if (menuTreemp3a == event.target) {
            var node = menuTreemp3a.selectedItem;
            // If this is a branch, expand/collapse it.
            if (menuTreemp3a.getIsBranch(node)) {
                menuTreemp3a.setIsOpen(node, !menuTreemp3a.getIsOpen(node), true);
            }
            // If this is a hyperlink, jump to it.
            var url = node.attributes.url;
            if (url) {
                getURL(url, "_blank");
            }
            // Clear any selection.
            menuTreemp3a.selectedNode = null;
        }
    }
    function onMenuLoaded() {
        menuTreemp3a.dataProvider = menuXML.firstChild;
        menuTreemp3a.addEventListener("change", this);
    }
}

```

that reads php file(php file scans mp3/a/ dir) and then creates list files and folders ( on picture 1 u can see created list) but when files and folders are too many at first time it shows only wite list (like on picture 2)and after few seconds folders and files. i want durning php scan wite list show something like “please wait” or “updating files and folders” ot preloader and when scan complites files and folders list.how can i do this?
