Hello list!

Forgive my gross ignorance, but here it is.

I am trying to pass a list of object names to a method in a class. I assumed 
that using an attribute is the best(tm) way of doing it, but I don't see a 
good example of how one could make that work.
1. Is this possible?
2. Is this the best method?
It looks like I can create the array doing a value="$once{new Array}" and it 
doesn't throw an exception, but I can't manage to pass it anything.

Next, once I have this list I am trying to iterate through the list like so

                                while (y < reset_list.length)
                                {
                                        if 
(canvas.reset_list[y].position_status) {
                                        canvas.reset_list[y].minor.remove(); 
                                        canvas.reset_list[y].major.apply();
                                }
                                else {
                                        canvas.reset_list[y].major.remove();
                                        canvas.reset_list[y].minor.apply(); 
                                }
                                canvas.reset_list[y].position_status 
= !canvas.reset_list[y].position_status;
                                y++
                                }

But of course this fails. How can I use reset_list[y] properly to achieve my 
goal?

Many thanks,
Matt

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to