[Flashcoders] AS3 package and class access

2007-07-17 Thread Matt Muller
Hi, I have a question about class instantiation. I have a class in this package com.foo.view.playerSkins I am trying to instantiate a singleton in com.foo.view (1 dir up) The compiler is throwing the following error... 1120: Access of undefined property TestInstance. However when its in the

Re: [Flashcoders] AS3 package and class access

2007-07-17 Thread Rob Romanek
What is your import statement for the singleton like? import com.foo.view.MySingletonClass; Rob On Tue, 17 Jul 2007 14:10:56 -0400, Matt Muller [EMAIL PROTECTED] wrote: Hi, I have a question about class instantiation. I have a class in this package com.foo.view.playerSkins I am trying

Re: [Flashcoders] AS3 package and class access

2007-07-17 Thread Matt Muller
yes. On 7/17/07, Rob Romanek [EMAIL PROTECTED] wrote: What is your import statement for the singleton like? import com.foo.view.MySingletonClass; Rob On Tue, 17 Jul 2007 14:10:56 -0400, Matt Muller [EMAIL PROTECTED] wrote: Hi, I have a question about class instantiation. I have a class

Re: [Flashcoders] AS3 package and class access

2007-07-17 Thread Jonathyn B. Tellez
I've seen behavior like that if the class and/or method are not explicitly public (AS3 default is 'internal' which would explain your ability to instantiate when in the same package.) HTH JB Tellez Sr. Software Engineer Scientific Learning On Tue, 17 Jul 2007 14:10:56 -0400, Matt