Hi guys, Unfortunately, this is old news. Flash's private/public modifiers are compile-time only. Once actionscript is compiled down to bytecode, everything's public.
If you want to call private methods, you can do it even more easily like so: _global.com.yourclass.yourMethod() or, possibly: this["className"].functionName(); To quote Bjarne Stroustrup (inventor of C++): "Language level protection mechanisms are protection against accident, not against fraud." HTH, Alias On 4/2/06, Michael Bedar <[EMAIL PROTECTED]> wrote: > > You mean that Flash ignores "private" when calling from the > timeline? Try from another class. > > > On Apr 2, 2006, at 12:16 PM, 신진석[Jinseok Shin] wrote: > > > I found private function call. > > > > //class as file > > > > class test_class{ > > private var _path:MovieClip = path > > function test_class(path:MovieClip){ > > _path = path > > } > > private function trace_test(){ > > trace("aaa") > > } > > } > > > > > > //fla action > > In <_root = _level0 = this> > > > > var new_test:test_class = new test_class(this); > > > > i can private function call > > > > try it.... > > > > About this question sending me e-mail > > e-mail : [EMAIL PROTECTED] > > it's bug reporting now...Adobe Macromedia > > > > > > _______________________________________________ > > 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 >
_______________________________________________ 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