Hi,

you need to;

ExtendedTree(owner).setPath([EMAIL PROTECTED]);

You have to cast.

Peace, Mike

On 2/10/07, syabro <[EMAIL PROTECTED]> wrote:

  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]);
}
}
}




--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to