maus und duplicate [Flash 8]
| Beiträge: 26 Registriert: Jun 2005
| 30.01.2013, 12:10
Hallo,
ich habe einen mc "box"
darin folgendes script:
ActionScript:1 2 3 4 5 6 7 8 9 10 11 12 | onClipEvent (load) {
Mouse.hide();xwert=0;ywert=0;i=0;
}
onClipEvent (enterFrame) {
_root.box._y=_root._ymouse;
_root.box._x=_root._xmouse;
}
onClipEvent (mouseDown) {i++;trace(i)
duplicateMovieClip(_root.box, "box"+i, i);
}
|
warum funktioniert es nicht?
wie wäre das korrekte script?
Danke! | | | Beiträge: 26 Registriert: Jun 2005
Themenautor/in
| 30.01.2013, 16:02
die Zählvariable i funktioniert ohne den duplicate Befehl,
wenn ich aber die Befehlszeile mit duplicate einsetze, zählt die Zählvariable mehrfach.
Irgend jemand eine Idee woran das liegen könnte?
viele Grüße | | | Beiträge: 1189 Wohnort: Boston MA Registriert: Feb 2006
| 30.01.2013, 19:03
|
|