[Flashcoders] Private variables visible?

2006-05-05 Thread Spiral Universe
Hi. I'm having an issue that might be because of my error but can't figure out 
what am I doing wrong. It's very simple.. i have a class with private vars and 
they are visible outside the class.. everywhere.. in other movieclips, in the 
root timeline :)


class MyClass {

private var _hidden:Number;

function MyClass() {
_hidden = 100;
}

}

attach this code to a movieclip in the ide (likage) and do a trace anywhere 
outside the class to _root.mc._hidden 


What is wrong here ??


-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
___
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] Private variables visible?

2006-05-05 Thread Eskil Janson
private variables are only recognized by the compiler for checking in 
AS2, unfortunantley.




/Eskil


Spiral Universe skrev:

Hi. I'm having an issue that might be because of my error but can't figure out 
what am I doing wrong. It's very simple.. i have a class with private vars and 
they are visible outside the class.. everywhere.. in other movieclips, in the 
root timeline :)


class MyClass {

private var _hidden:Number;

function MyClass() {

_hidden = 100;
}

}


attach this code to a movieclip in the ide (likage) and do a trace anywhere outside the class to _root.mc._hidden 



What is wrong here ??


-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
___
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] Private variables visible?

2006-05-05 Thread Spiral Universe
wicked... :)) i knew that but tought it should be detected by compiler that i 
try to use private var ...


Eskil Janson [EMAIL PROTECTED] wrote: private variables are only recognized 
by the compiler for checking in 
AS2, unfortunantley.



/Eskil


Spiral Universe skrev:
 Hi. I'm having an issue that might be because of my error but can't figure 
 out what am I doing wrong. It's very simple.. i have a class with private 
 vars and they are visible outside the class.. everywhere.. in other 
 movieclips, in the root timeline :)


 class MyClass {
 
 private var _hidden:Number;
 
 function MyClass() {
 _hidden = 100;
 }
 
 }

 attach this code to a movieclip in the ide (likage) and do a trace anywhere 
 outside the class to _root.mc._hidden 


 What is wrong here ??

   
 -
 New Yahoo! Messenger with Voice. Call regular phones from your PC and save 
 big.
 ___
 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



-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1cent;/min.

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2ยข/min or less.
___
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