| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Mar 2004 Ort: düsseldorf
Beiträge: 7
| einblenden
hi und sorry für den "x" ten ein und ausblend thread. leider finde ich in den vorhandenen themen nicht das was ich suche. nun zu meiner frage: und zwar habe ich einen hittest. wenn alle 15 objekte ihren "bestimmungsort" erreicht haben möchte ich einen mc einblenden lassen. wie geht das? bekomme es einfach nicht hin. dank
__________________ ..:: timer ::.. |
| | |
| | #2 (permalink) |
| alien Registriert seit: May 2002 Ort: Colonia
Beiträge: 7.597
|
hi. im groben kannste es so machen: ActionScript:
grüße. smirgel.
__________________ bei fragen, fragen. |
| | |
| | #3 (permalink) |
| Neuer User Registriert seit: Mar 2004 Ort: düsseldorf
Beiträge: 7
| hier mein script wie es bisher aussieht
var hittest_var = 0; s1.onPress = function() { this.startDrag(true); }; s2.onPress = function() { this.startDrag(true); }; k1.onPress = function() { this.startDrag(true); }; n1.onPress = function() { this.startDrag(true); }; n2.onPress = function() { this.startDrag(true); }; n3.onPress = function() { this.startDrag(true); }; g1.onPress = function() { this.startDrag(true); }; b1.onPress = function() { this.startDrag(true); }; e1.onPress = function() { this.startDrag(true); }; d1.onPress = function() { this.startDrag(true); }; a1.onPress = function() { this.startDrag(true); }; r1.onPress = function() { this.startDrag(true); }; r2.onPress = function() { this.startDrag(true); }; o1.onPress = function() { this.startDrag(true); }; a2.onPress = function() { this.startDrag(true); }; s1.onRelease = function() { this.stopDrag(true); }; s2.onRelease = function() { this.stopDrag(true); }; k1.onRelease = function() { this.stopDrag(true); }; n1.onRelease = function() { this.stopDrag(true); }; n2.onRelease = function() { this.stopDrag(true); }; n3.onRelease = function() { this.stopDrag(true); }; g1.onRelease = function() { this.stopDrag(true); }; b1.onRelease = function() { this.stopDrag(true); }; e1.onRelease = function() { this.stopDrag(true); }; d1.onRelease = function() { this.stopDrag(true); }; a1.onRelease = function() { this.stopDrag(true); }; r1.onRelease = function() { this.stopDrag(true); }; r1.onRelease = function() { this.stopDrag(true); }; o1.onRelease = function() { this.stopDrag(true); }; a2.onRelease = function() { this.stopDrag(true); }; kreis1.onEnterFrame = function() { if (s1.hitTest(kreis1)) { s1._x = this._x; s1._y = this._y; stopDrag(); hittest_var+=1; delete s1.onPress; delete this.onEnterFrame; } if (s2.hitTest(kreis1)) { s2._x = this._x; s2._y = this._y; stopDrag(); hittest_var+=1; delete s2.onPress; delete this.onEnterFrame; } }; kreis2.onEnterFrame = function() { if (a1.hitTest(kreis2)) { a1._x = this._x; a1._y = this._y; stopDrag(); hittest_var+=1; delete a1.onPress; delete this.onEnterFrame; } if (a2.hitTest(kreis2)) { a2._x = this._x; a2._y = this._y; stopDrag(); hittest_var+=1; delete a2.onPress; delete this.onEnterFrame; } }; kreis3.onEnterFrame = function() { if (r1.hitTest(kreis3)) { r1._x = this._x; r1._y = this._y; stopDrag(); hittest_var+=1; delete r1.onPress; delete this.onEnterFrame; } if (r2.hitTest(kreis3)) { r2._x = this._x; r2._y = this._y; stopDrag(); hittest_var+=1; delete r2.onPress; delete this.onEnterFrame; } }; kreis4.onEnterFrame = function() { if (k1.hitTest(kreis4)) { k1._x = this._x; k1._y = this._y; stopDrag(); hittest_var+=1; delete k1.onPress; delete this.onEnterFrame; } }; kreis5.onEnterFrame = function() { if (g1.hitTest(kreis5)) { g1._x = this._x; g1._y = this._y; stopDrag(); hittest_var+=1; delete g1.onPress; delete this.onEnterFrame; } }; kreis6.onEnterFrame = function() { if (e1.hitTest(kreis6)) { e1._x = this._x; e1._y = this._y; stopDrag(); hittest_var+=1; delete e1.onPress; delete this.onEnterFrame; } }; kreis9.onEnterFrame = function() { if (n1.hitTest(kreis9)) { n1._x = this._x; n1._y = this._y; stopDrag(); hittest_var+=1; delete n1.onPress; delete this.onEnterFrame; } if (n2.hitTest(kreis9)) { n2._x = this._x; n2._y = this._y; stopDrag(); hittest_var+=1; delete n2.onPress; delete this.onEnterFrame; } if (n3.hitTest(kreis9)) { n3._x = this._x; n3._y = this._y; stopDrag(); hittest_var+=1; delete n3.onPress; delete this.onEnterFrame; } }; kreis10.onEnterFrame = function() { if (s1.hitTest(kreis10)) { s1._x = this._x; s1._y = this._y; stopDrag(); hittest_var+=1; delete s1.onPress; delete this.onEnterFrame; } if (s2.hitTest(kreis10)) { s2._x = this._x; s2._y = this._y; stopDrag(); hittest_var+=1; delete s2.onPress; delete this.onEnterFrame; } }; kreis11.onEnterFrame = function() { if (o1.hitTest(kreis11)) { o1._x = this._x; o1._y = this._y; stopDrag(); hittest_var+=1; delete o1.onPress; delete this.onEnterFrame; } }; kreis12.onEnterFrame = function() { if (n1.hitTest(kreis12)) { n1._x = this._x; n1._y = this._y; stopDrag(); hittest_var+=1; delete n1.onPress; delete this.onEnterFrame; } if (n2.hitTest(kreis12)) { n2._x = this._x; n2._y = this._y; stopDrag(); hittest_var+=1; delete n2.onPress; delete this.onEnterFrame; } if (n3.hitTest(kreis12)) { n3._x = this._x; n3._y = this._y; stopDrag(); hittest_var+=1; delete n3.onPress; delete this.onEnterFrame; } }; kreis15.onEnterFrame = function() { if (n1.hitTest(kreis15)) { n1._x = this._x; n1._y = this._y; stopDrag(); hittest_var+=1; delete b1.onPress; delete this.onEnterFrame; } if (n2.hitTest(kreis15)) { n2._x = this._x; n2._y = this._y; stopDrag(); hittest_var+=1; delete n2.onPress; delete this.onEnterFrame; } if (n3.hitTest(kreis15)) { n3._x = this._x; n3._y = this._y; stopDrag(); hittest_var+=1; delete n3.onPress; delete this.onEnterFrame; } }; kreis16.onEnterFrame = function() { if (b1.hitTest(kreis16)) { b1._x = this._x; b1._y = this._y; stopDrag(); hittest_var+=1; delete b1.onPress; delete this.onEnterFrame; } }; kreis17.onEnterFrame = function() { if (r1.hitTest(kreis17)) { r1._x = this._x; r1._y = this._y; stopDrag(); hittest_var+=1; delete r1.onPress; delete this.onEnterFrame; } if (r2.hitTest(kreis17)) { r2._x = this._x; r2._y = this._y; stopDrag(); hittest_var+=1; delete r2.onPress; delete this.onEnterFrame; } }; kreis18.onEnterFrame = function() { if (a1.hitTest(kreis18)) { a1._x = this._x; a1._y = this._y; stopDrag(); hittest_var+=1; delete a1.onPress; delete this.onEnterFrame; } if (a2.hitTest(kreis18)) { a2._x = this._x; a2._y = this._y; stopDrag(); hittest_var+=1; delete a2.onPress; delete this.onEnterFrame; } }; kreis20.onEnterFrame = function() { if (d1.hitTest(kreis20)) { d1._x = this._x; d1._y = this._y; stopDrag(); hittest_var+=1; delete d1.onPress; delete this.onEnterFrame; } }; this.onEnterFrame=function() { if(hittest_var==15) { geschafft._alpha=100; } } ich möchte halt das wenn alle mc "gehittet" haben ein mc namens geschafft sichtbar wird liegt übrigens in einem externen script !
__________________ ..:: timer ::.. Geändert von xxxtimerxxx (12-03-2004 um 12:30 Uhr) |
| | |
| | #8 (permalink) |
| alien Registriert seit: May 2002 Ort: Colonia
Beiträge: 7.597
|
jupp. die fla wäre nicht schlecht. reicht ja in abgespeckter form, nur damit das eigentliche problem rüberkommt ![]() p.s. und schau dir mal die hitbeispiel-datei an. vielleicht hilft sie dir ja schon weiter.
__________________ bei fragen, fragen. |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |