because you didn't add the event listener. the last line of the block should be
 
myLayer.addEventListener(doClick);
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Doug Melvin
Sent: 29 March 2001 06:38
To: [EMAIL PROTECTED]
Subject: [Dynapi-Help] Okay, now I'm REALLY upset.

Why would the following not work?!?
Has there been some fundamental change that noone thought to mention?
 
DynAPI. {
 
 myLayer = new DynLayer()
 myLayer.setSize(100,100)
 myLayer.setBgColor('#c0c0c0')
 myLayer.moveTo(100,100)
 this.document.addChild(myLayer)
 
 doClick=new EventListener(myLayer);
 
 doClick.>  alert(DynAPI.document.getWidth());
 };
}

Reply via email to