Why do you need such an array?  All dynlayers are already put in an
array.  DynLayer's toString method also provides a global reference, so
the "this" will return a valid reference to the object.

-- 
Robert Rainwater


On 3/6/2001, 12:32:13 PM EST, Eytan wrote about "[Dynapi-Dev] Objects array":

> I'm not sure you have noticed but in my DynLayer there is a property called
> index. There is also an array called Objects. I think that for purposes like
> starting new threads for certain method calls (to eliminate out of stack
> space errors or other workarounds) we should make every widget add this
> code. It is very simple you just need to add in the declaration
> function myWidget(){
> blah
> blah
> this.index = Objects.length;
> Objects[this.index] = this;
> }

> Then when you want to refrence it (let us say in a setTimeout) you just do
> the following:
> setTimeout("Objects["+this.index"+"].dostuff",100);


> What do you think?
> 8an


> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev



_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to