I need a send [EMAIL PROTECTED] to an owner (tree). I've 
extend Tree class and write function Tree.setPath();

But when I tried to use this function as owner.setPath Flex says 
"Call to a possibly undefined method setPath through a reference with 
static type flash.display:DisplayObjectContainer.";

How can I use this function?

package CellRenderers
{

import mx.controls.treeClasses.*;
import mx.collections.*;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuItem;
import flash.ui.ContextMenuBuiltInItems;
import flash.events.ContextMenuEvent;
import flash.events.ContextMenuEvent;
import flash.events.MouseEvent;
import ed.ETree;
 
        
        public class ETreeItemRenderer extends TreeItemRenderer
        {
                
                public function ETreeItemRenderer() 
                {
                        super();
                        this.addEventListener(MouseEvent.MOUSE_OVER, 
mouseOverEvent);
                }
                
                public function mouseOverEvent(event:MouseEvent):void
                {
                        owner.setPath([EMAIL PROTECTED]);
                }       
        }
}

Reply via email to