Hello,
 
im really new, but maybe one of u can look into that and tell me whats wrong, in IE all works fine ... but in Netscape if u click on one of the buttons the event handling doesnt work anymore :-(
 
 
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);
 
 
 
 

OBar.prototype = new DynLayer ();
OBar.prototype.getSubClass = function () { return OBar }
 
OBar.Listener = new EventListener(this);
 

OBar.prototype.add = function(text,url){
 var nb = this.addChild(new Button());
 nb.setText (text);
 nb.addEventListener(this.buttonListener); 
 nb.setSize(this.w,20)
 nb.moveTo (0,100);
 this.items[this.items.length] = nb
 
 
 var nb2 = this.addChild(new Button());
 nb2.setText (text);
 nb2.addEventListener(this.buttonListener); 
 nb2.setSize(this.w,20)
 nb2.moveTo (0,10);
 this.items[this.items.length] = nb2 
 
 
};
 
 
thanks for the help
 
Freddi Gaisler
Germany
 
 

Reply via email to