okay, for some reason, the animate block is passing it up to app.slot instead of your flow.
Try something like this: http://gist.github.com/34793 Optionally, you could just append backgrounds after your first one to cover it up. alex On Thu, Dec 11, 2008 at 06:32, e deleflie <[EMAIL PROTECTED]> wrote: > Is it possible to change the colour of a background? > > I'm trying to animate a background ... like those yellow backgrounds > behind changed fields you see sometimes on web pages .... starts > yellow then fades out. > > this code isn't behaving as I'd imagined: > > Shoes.app :width => 200, :height => 200, :resizable => false do > flow :width => 100, :height => 100 do > @b = background rgb(255, 255, 0) > animate(24) do |i| > background rgb(i, i, 0) > # or ... @b.rgb(i,i,0) ... to avoid creating new background objects? > end > end > end > > Etienne > -- alexander rakoczy
