[Laszlo-dev] delegates *must* have an argument?
Sebastian Wagner
seba.wagner at gmail.com
Thu Mar 19 07:57:29 PDT 2009
same mistery for me but I think its because in AS3 you got to match
the exact number of arguments. Otherwise the Code will be not
compiled.
sebastian
2009/3/19 Sarah Allen <sarah at ultrasaurus.com>:
> So, I've got this code...
>
> <method name="_activateTimeDel">
> //Debug.write("mediastream._activeTimeDel()", this);
> if (!this._timedel) {
> this._timedel = new LzDelegate(this, "_updateTime");
> }
>
> this._timedel.unregisterAll();
> this._timedel.register(lz.Idle, "onidle");
> </method>
>
> I had noticed that _updateTime had an unused (and undocumented) argument 'v'
> which I removed to make the code cleaner and clearer. However, in the swf9
> runtime, I learn that delegates *must* be declared with an argument:
> WARNING: Invalid delegate: mediastream name: ms._updateTime => Function
> (must accept one argument)
>
> So, I go look up in the reference to see what the argument is and find no
> mention of it. Is this a doc omission?
>
> just curious... for now, I'll just put back the mysterious 'v'
>
> Sarah
>
--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba.wagner at gmail.com
More information about the Laszlo-dev
mailing list