AS3 - Grafiken.clear()

Rufe ich die Funktion unten aus dem Kontext-Menü und Grafik gelöscht. Wenn der Aufruf innerhalb einer anderen Funktion ist es nicht.
Warum es nicht funktioniert als?

          function removeFrame(e:Event=null):void{
            holder.graphics.clear();
            }

        function cleanIt(e:Event=null):void{ 
        removeFrame() 
    } 
    //NOT working by calling it like this:
        cleanIt() 

//It's Working if I call the function directly from the right-click menu:
 menuitem1.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,cleanIt);

Dank. Uli

InformationsquelleAutor Uli | 2012-04-07
Schreibe einen Kommentar