RE: [Flashcoders] oop[s?]

2006-03-10 Thread Robert Chyko
Your: class rect { needs to be: class com.drawing.rect { And Either move: private var ref:Object = target_mc; To outside the drawRectangle() function or drop the word private from the declaration. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of murder

Re: [Flashcoders] oop[s?]

2006-03-10 Thread Adrian Park
Your class decleration should be: // begin code class com.drawing.rect { i.e. you need to declare it with the full classpath Your ref property should be declared like this: var ref:Object = target_mc; i.e. you shouldn't use the private or public keywords within a method since the property is