[ascoders] oop frage - zugriff auf mc's
- From: Gesa.Boettcher@xxxxxxxx
- To: ascoders@xxxxxxxxxxxxx
- Date: Fri, 31 Oct 2003 13:53:11 +0100
nochmal hallo,
ich erstelle folgendes:
ScrollObj = function (x, y, sy, by) {
this._x = this.x;
this._y = this.y;
this.slider._y = this.sy;
this.butUp._y = this.by;
}
ScrollObj.prototype = new MovieClip();
Object.registerClass("scrollSymbol",ScrollObj);
attachMovie("scrollSymbol", "scrollCont", 2, {x: 368, y: 331, sy: 13, by:
348});
-------------
nun liegt in dem scrollSymbol der mc "slider" - es geht darum, wie ich den
jetzt ansprechen kann?
ScrollObj = function (x, y, sy, by) {
this._x = this.x;
this._y = this.y;
this.slider._y = this.sy;
this.butUp._y = this.by;
this.slider.onPress = ......
}
das geht, kommt mir aber nicht sehr elegant vor (selbst wenn ich die
eigentliche arbeit auslagern kann).
aber
ScrollObj.prototype.slider.onPress = ..... o.ä.
funktioniert nicht
slider müßte doch jetzt teil von ScrollObj "scrollCont" sein
und somit in allen instanzen vorhanden/verfügbar - also auch ansprechbar -
sein??
oder stelle ich mir das völlig falsch vor?
gesa
------------------------------------------------------
Archiv : http://www.freelists.org/archives/ascoders/
Optionen : http://www.freelists.org/list/ascoders
------------------------------------------------------
- Follow-Ups:
- [ascoders] Re: oop frage - zugriff auf mc's
- From: Manuel Dahm
- [ascoders] Re: oop frage - zugriff auf mc's
- From: Volker Kreß
Other related posts:
- » [ascoders] oop frage - zugriff auf mc's
- » [ascoders] Re: oop frage - zugriff auf mc's
- » [ascoders] Re: oop frage - zugriff auf mc's
- » [ascoders] Re: oop frage - zugriff auf mc's
- » [ascoders] Re: oop frage - zugriff auf mc's
- » [ascoders] Re: oop frage - zugriff auf mc's
- » [ascoders] Re: oop frage - zugriff auf mc's
- » [ascoders] Re: oop frage - zugriff auf mc's
- [ascoders] Re: oop frage - zugriff auf mc's
- From: Manuel Dahm
- [ascoders] Re: oop frage - zugriff auf mc's
- From: Volker Kreß