Hi Szymon,
Good catch! I don't know why this isn't working.
For some reason, this works, rendering nothing:
Shoes.app do
@ev = every(2) do
para 'stuff'
end
@ev.start
@ev.stop
end
Maybe the stop is getting issued before the timer gets a chance to
initialize properly? I don't really understand.
Alex
On Sun, Feb 1, 2009 at 21:12, Szymon Wrozynski <[email protected]> wrote:
> Hello again ;)
>
> I did not want to mix up two distinct cases in the previous post, so I'm
> sending this one.
> I would like to use every element in my code, but I would like to make use
> of its methods (start, stop, toggle). So, right now after it is defined I
> don't want to run it. I have the following code, but it doesn't work.
>
> Shoes.app do
> @ev = every 2 do
> para "blah"
> end
> @ev.stop
> end
>
> The @ev.stop doesn't stop the @ev element. If I have a button which will
> call the @ev.stop method it would stop the every indeed. But why I cannot
> force it to stop right now after definition?
>
> regards
>
> sw
>
--
alexander rakoczy