From: Dave Lilley Date: 2009-02-25T18:36:01+09:00 Subject: Re: Objects put into a declared array Justin & lasitha, Many thanks for replying, Muchly appreciated. My aim was to have an array of shapes that can be controlled my the array. I think both this and the other below are what i was after and so hopefully i can continue my little shoes program. >(0..25).each do |p| > @myarray[p] = oval(0,0,20,20) > @myarray[p].move = x,y > @myarray[p] = oval(0,0,20,20).move(x,y) > The way you've got it ruby will look for an attribute writer > method[3], #move=, on that object and try to assign the array [x, y] > to it. It would be odd to have an attribute named move (since it's a > verb) - doesn't sound like something _why would create :). I firmly believed it was my misunderstanding of what i had read that caused me the problem regarding the above. I saw the way it was used by Karel Mina����k but I'm a bit pig headed (stubborn) and wanted to inject something of me into my code. Hope this helps someone else with a similar problem. and I will goto those links and read up some more. thanks again, dave. -- Posted via http://www.ruby-forum.com/.