|
see
response inline:
function OBar (id,x,y,w,h)
{ this.DynLayer = DynLayer; this.DynLayer(); this.items = []; this.buttonListener = new EventListener(this); this.buttonListener.
(e)
{ var o = e.getSource(); alert (o); } this.addEventListener(OBar.Listener); <-- this line should read this.addEventListener()this.buttonListener;
as this.buttonListener is the name of the EventListener you have
created.
} OBar.prototype = new DynLayer (); OBar.prototype.getSubClass = function () { return OBar } OBar.Listener = new
EventListener(this); <-- this line hsould not be here, as
you are not doing anything with .Listener
|
- [Dynapi-Help] Sorry .... Freddi Gaisler
- Doug Melvin
