08-04-2007, 16:57
|
|
|
חבר מתאריך: 02.07.05
הודעות: 1,046
|
|
בעיה קטנה בקוד
קוד PHP:
on(keyPress "<Space>") { var newdepth = this._parent.getNextHighestDepth(); var newname = "copy" + newdepth; var prevname = "copy" + (newdepth-1); if (this._parent[prevname] == undefined) this._parent[prevname] = this; this.duplicateMovieClip(newname,newdepth); this._parent[newname]._x = this._parent[prevname]._x + 10; this._parent[newname]._y = this._parent[prevname]._y + 10; this._parent[newname].tfc = this._parent[prevname].tfc+= 10 }
אוקיי אז הקוד עובד טוב והכל אבל הבעיה היחידה היא שכשאני משכפל את המווי קליפ פעמיים אז השינויים נעשים רק במוויקליפ המשוכפל הראשון...
הנה זאת השורה שעושה את השינוי
קוד PHP:
this._parent[newname].tfc = this._parent[prevname].tfc+= 10
למי שלא הבין אני רוצה לעשות שבכל פעם שאני משכפל מוויקליפ אז נוסף 10 למשתנה tfc
_____________________________________
https://2009-uploaded.fresh.co.il/2009/09/08/93992914.doc
|