did you type your instance of oCore on root ? if your data is not "typed" the iDE will not enforce access modifiers.
e.g var core:Core = new Core() trace (core.oParam); /// should not compile var anotherCore = new Core() trace (anotherCore .oParam); /// should compile as anotherCore is not typed. because you are declaring it on root is probably not typed. Why put it on root ? Grant. ----- Original Message ----- From: PR Durand [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: 12/14/05 9:54 AM Subject: [Flashcoders] private/public troubles > Hi List! > > This is not really a problem, but rather a question cause it seems > strange... > > I've got a Core.as class containing > private var oParam:ParamMngr; > and > this.oParam = new ParamMngr(); > > in the ParamMngr class, we can see > private var mcGround:MovieClip; > and theuse of it. > > into flash, on main stage, I've put the following: > import com.domain.Core; > _root.oCore = new Core(); > > and then tried > trace(_root.oCore.oParam.mcGround); > --> it worked !!! > > why? each variable is private... so how can it run? > > thx, > > PR > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders