20-12-2004, 12:23
|
|
|
|
חבר מתאריך: 09.10.04
הודעות: 2,319
|
|
אז ככה
צור שני MC's בשכבה אחת, ותן להם שמות.
צור שכבת Action ובפריים הראשון תכתוב
(כתבתי לך קוד עם start/stopDrag לצורך הדגמה)
קוד:
mcDRAG.onPress = function() :Void {
this.startDrag();
};
mcDRAG.onRelease = function() :Void {
this.stopDrag();
var bIsOverLapping:Boolean = this.hitTest(mcDROP);
if(bIsOverLapping)
this._Visible = false;
}
כאשר תגרור את mcDRAG על mcDROP ותשחרר, mcDRAG יעלם (מפני ששמתי Visible_)
הכנתי דוגמא :
SWF לחץ כאן
FLA כאן
בהצלחה
_____________________________________
BugY
Animation & ActionScriptin
נערך לאחרונה ע"י BugY בתאריך 20-12-2004 בשעה 12:41.
|