You use the id as a drop-in replacement for your variable.

<canvas>
<view id='firstview' visible='false' />
<script>
Debug.debug(firstview.visible)
</script>
</canvas>
prints false to the debug console.

On Fri, Mar 4, 2011 at 6:54 PM, Chris Janik <[email protected]> wrote:

> Many times I've referenced an active view by opening them like so
>
> OpenBW = new lz.BigWindow(canvas, {x:xcor, y:10, width:wid});
>
> OpenBW = something like this <BigWindow>#3 /BigWindow
>
> after doing this I can refer to that view using the variable OpenBW.
>
> In a project I'm currently working on it would be pretty messy to spawn all
> of my views like the one above but I still would like to be able to
> reference them.
>
> How can I do this?
>
> I've tried to assign the Id of the view I want to control to a variable and
> I've also tried getUID but both of these return "TypeError: Cannot call
> method 'doStart' of undefined"
>
> Can someone please help
>
> --
> ignotus
>
>

Reply via email to