addChild() is a method of a DynLayer not a standard javascript method.
If your widget is not yet a dynlayer (because you haven't specified it as
so), the addchild method does not exist yet and you can't use it.
btw, do your parent know about the name mixup? ;-)
Pascal Bestebroer
[EMAIL PROTECTED]
http://www.oibv.com
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Namens Pepe Gutierrez
Verzonden: maandag 11 december 2000 11:34
Aan: [EMAIL PROTECTED]
Onderwerp: [Dynapi-Help] Help on widgets
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/
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help