15-09-2006, 13:34
|
|
|
חבר מתאריך: 01.07.05
הודעות: 20
|
|
איזה קוד?
הקוד שבו השתמשתי???
אם כן אז:
1)
קראתי לכל חלק PART 1, PART 2...
זה הקוד ששמתי ללייר של החלקים מהתמונה: pazel_parts = 12
for (i = 1; i < pazel_parts + 1; i++) {
_root["part" + i].onPress = function() {
this.startDrag(true)
}
_root["part" + i].onRelease = function() {
this.stopDrag()
}
_root["part" + i].onReleaseOutSide = function() {
this.stopDrag()
}
}
onEnterFrame=function() {
for (i = 1; i < pazel_parts + 1; i++) {
if (_root["part" + i].hitTest(_root["match" + i])) {
_root["part" + i]._x = _root["match" + i]._x
_root["part" + i]._y = _root["match" + i]._y
}
}
}
2) לכל החלקים שאליהם אני מחבר תפאזל נתתי שם: match2, match1 ...
***תעזור לי בבקשה***
_____________________________________
Your signature did not follow Fresh's signatures policy, therefore it was automatically erased. Please see the E-Mail which has been sent to you, to learn how to fix this.
|