Prototype: MovieClip.onDoubleClick [Flash 8]
| 24.07.2003, 17:27 | | Beiträge: 6940 Wohnort: München Registriert: Jan 2002
| Prototype: MovieClip.onDoubleClick Event Handler - Doppelklick
Prototype:
ActionScript:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | MovieClip.prototype.addProperty("onDoubleClick",function() {
return this.$onDoubleClick;
},function(f) {
this.__proto__ = DoubleClick.prototype;
this.$onDoubleClick = f;
ASSetPropFlags(this,["$onDoubleClick"],1,true);
});
DoubleClick = function() {};
DoubleClick.prototype = new MovieClip();
DoubleClick.prototype.onMouseDown = function() {
if(this.hitTest(_root._xmouse,_root._ymouse,true)) {
(this.t = getTimer()) < this.$a+250 ? this.$onDoubleClick() : this.$a = this.t;
}
};
ASSetPropFlags(MovieClip.prototype,["onDoubleClick"],7,true);
ASSetPropFlags(this,["DoubleClick"],7,true);
|
Beispiel Aufruf:
ActionScript:1 2 3 | mc.onDoubleClick = function() {
trace("Dies war ein Doppelklick")
};
|
Flex Freelancer || Flashhilfe @ Twitter || XING Profil | |
| | Themen Ähnliche Beiträge zum Thema | 13.01.2010 - Stachlbeere 12.10.2009 - Starfoxfs 07.12.2009 - ole4 16.02.2010 - Anubis667 |
|
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News 
Regeln & Bedingungen
|