From: <jav...@ya...> - 2000-12-11 09:47:34
|
I'm just and user so excuse me if this is a stupid question... :) (My name's Javi, not Pepe (it's a little mistake, sorry)) I want to make widgets and I have tested two ways to add DynLayers inside the widgets. The first way is simply something like that: this.aLayer = this.addChild(new DynLayer()) The second one is somthing like that: this.aLayer = new DynLayer() l = new EventListener(this) l.oncreate = function (e) { me = e.getTarget() me.addChild(me.aLayer) } this.addEventListener(l) Only the second one works. Why? I prefer the first is more simple and easy. I have found some code using the first one, but it doesn't work. What's going on? __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ |