Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-12-01 Thread Matthias Dittgen
Hello, I learned a lot now about broadcasting events, but still haven't achieve my initial intention, which was as follows: I want to have a class (kind of black-box), I call MyUIObject. Then I want to create instances of MyUIObject: var uio:MyUIObject = new MyUIObject(); I want to have a

Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-12-01 Thread Matthias Dittgen
The set/get (former addProperty) methodology seemed to offer the solution, but now I see, that I can implicit (not writing uio.setSomething, but uio._something) set a value, but _something is private and thus code completion etc. will not work. Matthias

Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-12-01 Thread eka
Hello :) the _ notation is used to do the difference between private and public ... if you create a virtual property with get/set used in private the _ notation : class Test { function Test() { } /** * Internal private value. */ private var _value:Number ; public

Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread Matthias Dittgen
You guys are right, I have mixed two questions into one: 1: properties in AS1/AS2 2: watching properties, EventModel Hello Rákos, thank you for the link to the documentation of the set/get keywords. On that page, you can read: NOTE Implicit getter and setter methods are syntactic shorthand for

Re: Re[4]: [Flashcoders] onChange or onResize or onX event - howto?

2006-11-30 Thread eka
Hello :) To test mx.events.EventDispatcher, GDispatcher, Vegas... the best solution is to test all model :) In big project with FrontController, MVC etc.. my framework is very interesting... if you want just create a little communication between 2 objects AsBroadcaster is very good :) In Vegas