[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 same package com.foo.view.playerSkins I can import
and instantiate it.

Has anyone got any ideas?

Cheers,

MaTT
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


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 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 same package com.foo.view.playerSkins I can  
import

and instantiate it.

Has anyone got any ideas?

Cheers,

MaTT

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


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 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 same package com.foo.view.playerSkins I can
 import
 and instantiate it.

 Has anyone got any ideas?

 Cheers,

 MaTT
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


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 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 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 same package com.foo.view.playerSkins I can  

 import

 and instantiate it.

 

 Has anyone got any ideas?

 

 Cheers,

 

 MaTT

 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com