From: Nia Date: 2006-11-17T01:15:09+09:00 Subject: Re: basic mistake? > Hal is correct, moving it into initialize solves the problem. > > It appears that declaring the instance variable at the class > level makes it an instance variable of the class, rather than > of the object of the class being created when initialize is called. > > In short, declare your instance attributes inside initialize. > > Cheers > Chris > hehe, i knew it was some basic mistake. thank you all very much. so is it wrong to declare a variable outside a method? cause i usually do that a lot,