could you provide more detail on what you want to achieve?
the following would make a Class object receive all MovieClip
onRelease events. and would do so for a timeline with slightly
modified code. not sure this is what you mean though?
public function initOnRelease ( Void ) : Void {
var listener = this ;
MovieClip.prototype.onRelease = function ( ) { listener.sayHello
( ) ; } ;
}
public function sayHello ( Void ) : Void {
trace ( "HELLO!!!!" ) ;
}
cheers, Alisdair
On 24 Nov 2005, at 19:25, Aaron Haines wrote:
Is this possible..?
Anyone know how to do it..?
I want to be able to add a listener with an onRelease function to any
movieclip.
The onRelease of the listener would be triggered whenever the
onRelease of
the movieclip is triggered.
Any help much appreciated.
a.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders